Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignore casing of terms matched by the fuzzy_find_in jinja filter #140

Merged
merged 1 commit into from
Aug 8, 2023

Conversation

sHermanGriffiths
Copy link
Contributor

@sHermanGriffiths sHermanGriffiths commented Aug 8, 2023

Describe Your Changes

Modified the re.finditr call to re.IGNORECASE so that lower cased references to the key terms still get matched

How Did You Test It

I exported SW-0010_MIC_Finder_SDDS_Rev_C from Specific-Dx and ensured that Software Item was included in the glossary, as it's referenced in the document, although in lowercase. I ran the debugger on my n2y code to see if the terms were coming through correctly and they were so that indicated to me that the matching system was filtering out the desired terms. I immediately knew it was the casing so I added the aforementioned flag and that fixed the issue

Screen Shot 2023-08-08 at 3 03 19 PM Screen Shot 2023-08-08 at 3 01 13 PM

Copy link
Member

@bimbashrestha bimbashrestha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Nice test write up

@sHermanGriffiths sHermanGriffiths merged commit 289557b into main Aug 8, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants