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

analyzer/testdata: use \Q regexp quoting everywhere #279

Merged
merged 1 commit into from Oct 14, 2021

Conversation

quasilyte
Copy link
Owner

In analysis test we're using want directive to match warnings.
I personally thing that 99% of time we need a string matching,
not a regexp matching. So this test checks that we do \Q
escaping everywhere, making our patterns matching string "as is";
so you don't have to escape ( and ) in the patterns.

In analysis test we're using `want` directive to match warnings.
I personally thing that 99% of time we need a string matching,
not a regexp matching. So this test checks that we do `\Q`
escaping everywhere, making our patterns matching string "as is";
so you don't have to escape `(` and `)` in the patterns.
@quasilyte quasilyte merged commit 1b62232 into master Oct 14, 2021
@quasilyte quasilyte deleted the quasilyte/fix_testcomments branch October 14, 2021 15:22
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.

None yet

1 participant