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

Need to ability to use suffix to avoid substituting partial matches #19

Open
rrabb opened this issue Jan 24, 2020 · 1 comment
Open

Comments

@rrabb
Copy link

rrabb commented Jan 24, 2020

I've encountered an issue with using json object pattern matching.

It's necessary to use suffix sometimes when there are unintended partial matches due to missing json keys in the pattern json object.
For example, be able to replace matches like @@env.css.darkStyle@@ instead of just @@env.css.darkStyle. This is needed to avoid erroneously substituting a partial match like @@env.css.darkStyle.headerColor with the @@env.css.darkStyle match (which is a serialized json object) when property "headerColor" is not found in the pattern json object under env.css.darkStyle.

Please refer to my pull request.

@rrabb
Copy link
Author

rrabb commented Jan 24, 2020

5793b26

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

No branches or pull requests

1 participant