Skip to content
This repository was archived by the owner on Mar 18, 2024. It is now read-only.

Conversation

@chrismwendt
Copy link
Contributor

No description provided.

definitionPatterns: ['const\\s%s\\s='],
expectedSearchQueries: [
// current file
'const\\stoken\\s= case:yes file:.(cpp)$ type:file repo:^github.com/foo/bar$@rev file:^file.cpp$',
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the dots in the file: query should be escaped with a backslash

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, yup, and in general the string needs to be run through something like escapeRegexChars() (I made that up).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants