We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
getUsageOfPattern
While writing tests, I found that getUsageOfPattern behaves strangely around unknown functions.
The following test cases pass.
{ code: `foo(/[a-zA-Z]\\w*/)`, results: [UsageOfPattern.whole], }, { code: `foo({ pattern: /[a-zA-Z]\\w*/ })`, results: [UsageOfPattern.unknown], },
Both should have the same result: unknown. We do not know how foo is implemented. It might use the regex as is or it might return its source.
unknown
foo
The text was updated successfully, but these errors were encountered:
I made an incorrect change when I changed from isPartialPattern to getUsageOfPattern. I will fix this bug.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
While writing tests, I found that
getUsageOfPattern
behaves strangely around unknown functions.The following test cases pass.
Both should have the same result:
unknown
. We do not know howfoo
is implemented. It might use the regex as is or it might return its source.The text was updated successfully, but these errors were encountered: