-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Hi there,
First of all thank you very much for this plugin that is super useful !
It's a tiny issue that I'm posting but if there is a quick fix that'd be super awesome : in VS Code, when a string matches one of the regexps used an eslint rule, only its first character is underlined :
Example:
Given this rule:
{
regex: 'querySql\\([^,]+,[^,]+\\)',
message: 'Pass a third argument containing query variables.',
}This code snipet matches, but only its first char q is underlined:
const response = await querySql(prisma, query)The behavior I'd expect would be to underline the whole string matching the regexp (ie: querySql(prisma, query))
I searched the doc for a way to fix that in the rule configuration and tried to wrap the regex between parenthesis but no luck. If I missed something please accept my apologies and point me to the right piece of documentation :)
Thanks in advance,
Pierre
dhilipb, LayZeeDK and rosslh
Metadata
Metadata
Assignees
Labels
No labels
