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 02d6b59 commit ef3fd80
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 ef3fd80

Please sign in to comment.