Skip to content

Commit

Permalink
better pattern match
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonidPilyugin committed Jul 27, 2024
1 parent d490033 commit 163bc0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spmi/utils/pattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ def is_pattern(self, string):
def match(self, pattern, string):
super().match(pattern, string)
p = re.compile(pattern)
return p.match(string)
return p.fullmatch(string)

0 comments on commit 163bc0d

Please sign in to comment.