We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9608934 commit a5d35e9Copy full SHA for a5d35e9
keywords/regexp.js
@@ -11,7 +11,7 @@ module.exports = function defFunc(ajv) {
11
if (typeof schema == 'object')
12
return new RegExp(schema.pattern, schema.flags);
13
14
- var rx = schema.match(/^\/(.*)\/([gimy]*)$/);
+ var rx = schema.match(/^\/(.*)\/([gimuy]*)$/);
15
if (rx) return new RegExp(rx[1], rx[2]);
16
throw new Error('cannot parse string into RegExp');
17
} catch(e) {
0 commit comments