Skip to content

Commit

Permalink
Revert "change import" (:
Browse files Browse the repository at this point in the history
This reverts commit c70cd57.
  • Loading branch information
predragnikolic committed Feb 13, 2024
1 parent c70cd57 commit 2e252d3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugin/core/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
from .typing import cast
from .url import filename_to_uri
from .url import parse_uri
from wcmatch import glob
from wcmatch.glob import BRACE
from wcmatch.glob import globmatch
from wcmatch.glob import GLOBSTAR
import contextlib
import fnmatch
import os
Expand Down Expand Up @@ -409,7 +411,7 @@ def __call__(self, view: sublime.View) -> bool:
if isinstance(uri, str) and parse_uri(uri)[0] != self.scheme:
return False
if self.pattern:
if not glob.globmatch(view.file_name() or "", self.pattern, flags=glob.GLOBSTAR | glob.BRACE):
if not globmatch(view.file_name() or "", self.pattern, flags=GLOBSTAR | BRACE):
return False
return True

Expand Down

0 comments on commit 2e252d3

Please sign in to comment.