mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-01-28 00:26:58 -05:00
Fix branch didn't check word_boundary
This commit is contained in:
parent
5cd2126a6a
commit
47f82e4408
@ -273,6 +273,12 @@ def _glob_matches(glob, value, word_boundary=False):
|
|||||||
),
|
),
|
||||||
r,
|
r,
|
||||||
)
|
)
|
||||||
|
if word_boundary:
|
||||||
|
r = "\b%s\b" % (r,)
|
||||||
|
r = re.compile(r, flags=re.IGNORECASE)
|
||||||
|
|
||||||
|
return r.search(value)
|
||||||
|
else:
|
||||||
r = r + "$"
|
r = r + "$"
|
||||||
r = re.compile(r, flags=re.IGNORECASE)
|
r = re.compile(r, flags=re.IGNORECASE)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user