mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Remove use of 's' regex flag (#31292)
This commit is contained in:
parent
02d6b59894
commit
ef3fd80461
1 changed files with 2 additions and 2 deletions
|
@ -47,8 +47,8 @@ export function test(node, string) {
|
|||
const regex = value
|
||||
.split(wildcardSymbol)
|
||||
.map(escapeRegExp)
|
||||
.join('.*');
|
||||
const regexp = new RegExp(`^${regex}$`, 's');
|
||||
.join('[\\s\\S]*');
|
||||
const regexp = new RegExp(`^${regex}$`);
|
||||
return regexp.test(string);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue