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

Fix name transformation in current() #466

Merged
merged 1 commit into from
Oct 1, 2021
Merged

Fix name transformation in current() #466

merged 1 commit into from
Oct 1, 2021

Conversation

djfhe
Copy link
Contributor

@djfhe djfhe commented Sep 26, 2021

Fixes dot and wildcard replace to match all occurrences of , and * .

Without the fix current('event.venue.index') would match event.venue-index since only the first dot gets escaped.
Other Example: current('event.venue.*') would match event.venue.index and event.venue-soon.index.

This PR should fix that.

Tests are also provided.

@bakerkretzmar bakerkretzmar self-assigned this Sep 30, 2021
Copy link
Collaborator

@bakerkretzmar bakerkretzmar left a comment

Choose a reason for hiding this comment

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

Thanks @djfhe! Good catch, and really appreciate the tests 💪🏻

@bakerkretzmar bakerkretzmar merged commit 23e5caa into tighten:main Oct 1, 2021
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