Skip to content

Conversation

@pedro-mendonca
Copy link
Member

@pedro-mendonca pedro-mendonca commented Oct 26, 2023

Problem

In the string %sshow, the word show isn't matched by the glossary because isn't left bounded by \b.

Solution

Add the current placeholder matching pattern also as a possible left boundarie, as \b.

This PR also adds some methods to simplify writing testing code of glossary matches and to improve the readability of the tests.

Fixes #1732

@pedro-mendonca pedro-mendonca force-pushed the glossary-placeholders-fix branch from 8415c1a to 667f8a5 Compare January 10, 2024 13:01
Copy link
Member

@amieiro amieiro left a comment

Choose a reason for hiding this comment

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

I have reviewed it, and it fixes the bug as it is expected.
It adds some good refactoring in the tests. 👍

@amieiro amieiro merged commit d7e6277 into GlotPress:develop Jan 11, 2024
@pedro-mendonca pedro-mendonca deleted the glossary-placeholders-fix branch January 11, 2024 09:49
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.

Bug in glossary terms matching bounded by placeholders

2 participants