File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ function extractDatabaseChangeFromUse(sql) {
11
11
// The character ranges for this were pulled from
12
12
// http://dev.mysql.com/doc/refman/5.7/en/identifiers.html
13
13
14
- // Suppressing a warning on this regex because it is not obvious what this
15
- // regex does, and we don't want to break anything .
16
- // eslint-disable-next-line sonarjs/slow-regex, sonarjs/duplicates-in-character-class
17
- const match = / ^ \s * u s e [ ^ \w ` ] + ( [ \w $ _ \u0080 - \uFFFF ] + | ` [ ^ ` ] + ` ) [ \s ; ] * $ / i. exec ( sql )
14
+ // The lint rule being suppressed here has been evaluated, and it has been
15
+ // determined that the regular expression is sufficient for our use case .
16
+ // eslint-disable-next-line sonarjs/slow-regex
17
+ const match = / ^ \s * u s e [ ^ \w ` ] + ( [ \w $ \u0080 - \uFFFF ] + | ` [ ^ ` ] + ` ) [ \s ; ] * $ / i. exec ( sql )
18
18
return ( match && match [ 1 ] ) || null
19
19
}
You can’t perform that action at this time.
0 commit comments