File tree 3 files changed +2
-1
lines changed
3 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ export default [
26
26
'eol-last' : [ 'warn' ] ,
27
27
'jsx-a11y/no-autofocus' : [ 'off' ] ,
28
28
'security/detect-object-injection' : [ 'off' ] ,
29
+ 'security/detect-non-literal-regexp' : [ 'off' ] ,
29
30
} ,
30
31
31
32
settings : {
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ export default [
10
10
{
11
11
rules : {
12
12
'security/detect-object-injection' : [ 'off' ] ,
13
+ 'security/detect-non-literal-regexp' : [ 'off' ] ,
13
14
} ,
14
15
15
16
settings : {
Original file line number Diff line number Diff line change @@ -316,7 +316,6 @@ const filterMatchesOcmNode = ({
316
316
if ( ! patterns ?. length > 0 ) return true
317
317
if ( ! string ) return filter . semantics === FILTER_SEMANTICS . INCLUDE
318
318
319
- // eslint-disable-next-line security/detect-non-literal-regexp
320
319
return Boolean ( patterns . find ( ( pattern ) => ( new RegExp ( pattern ) ) . test ( string ) ) )
321
320
}
322
321
You can’t perform that action at this time.
0 commit comments