File tree Expand file tree Collapse file tree 3 files changed +2
-1
lines changed Expand file tree Collapse file tree 3 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ export default [
2626 'eol-last' : [ 'warn' ] ,
2727 'jsx-a11y/no-autofocus' : [ 'off' ] ,
2828 'security/detect-object-injection' : [ 'off' ] ,
29+ 'security/detect-non-literal-regexp' : [ 'off' ] ,
2930 } ,
3031
3132 settings : {
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ export default [
1010 {
1111 rules : {
1212 'security/detect-object-injection' : [ 'off' ] ,
13+ 'security/detect-non-literal-regexp' : [ 'off' ] ,
1314 } ,
1415
1516 settings : {
Original file line number Diff line number Diff line change @@ -316,7 +316,6 @@ const filterMatchesOcmNode = ({
316316 if ( ! patterns ?. length > 0 ) return true
317317 if ( ! string ) return filter . semantics === FILTER_SEMANTICS . INCLUDE
318318
319- // eslint-disable-next-line security/detect-non-literal-regexp
320319 return Boolean ( patterns . find ( ( pattern ) => ( new RegExp ( pattern ) ) . test ( string ) ) )
321320 }
322321
You can’t perform that action at this time.
0 commit comments