Skip to content

Commit

Permalink
Remove use of 's' regex flag (#31292)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasolson committed Feb 19, 2019
1 parent 67f503e commit 7832c7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/kbn-es-query/src/kuery/node_types/wildcard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 7832c7c

Please sign in to comment.