Skip to content

Commit

Permalink
ignore casing of terms matched by the fuzzy_find_in jinja filter (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
sHermanGriffiths authored Aug 8, 2023
1 parent 07a10e4 commit 289557b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion n2y/plugins/jinjarenderpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def join_to(foreign_keys, table, primary_key='notion_id'):
def list_matches(string, text):
return list(re.finditer(
'(?<![a-zA-Z])' + re.escape(_canonicalize(string)) + '(?:s|es)?(?![a-zA-Z])',
_canonicalize(text))
_canonicalize(text), re.IGNORECASE)
)


Expand Down

0 comments on commit 289557b

Please sign in to comment.