We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c21016 commit c70cd57Copy full SHA for c70cd57
plugin/core/types.py
@@ -6,9 +6,7 @@
6
from .typing import cast
7
from .url import filename_to_uri
8
from .url import parse_uri
9
-from wcmatch.glob import BRACE
10
-from wcmatch.glob import globmatch
11
-from wcmatch.glob import GLOBSTAR
+from wcmatch import glob
12
import contextlib
13
import fnmatch
14
import os
@@ -411,7 +409,7 @@ def __call__(self, view: sublime.View) -> bool:
411
409
if isinstance(uri, str) and parse_uri(uri)[0] != self.scheme:
412
410
return False
413
if self.pattern:
414
- if not globmatch(view.file_name() or "", self.pattern, flags=GLOBSTAR | BRACE):
+ if not glob.globmatch(view.file_name() or "", self.pattern, flags=glob.GLOBSTAR | glob.BRACE):
415
416
return True
417
0 commit comments