JWT Autorization / Logging in and registering
This commit is contained in:
13
node_modules/validator/es/lib/util/multilineRegex.js
generated
vendored
Normal file
13
node_modules/validator/es/lib/util/multilineRegex.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* Build RegExp object from an array
|
||||
* of multiple/multi-line regexp parts
|
||||
*
|
||||
* @param {string[]} parts
|
||||
* @param {string} flags
|
||||
* @return {object} - RegExp object
|
||||
*/
|
||||
export default function multilineRegexp(parts) {
|
||||
var flags = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
||||
var regexpAsStringLiteral = parts.join('');
|
||||
return new RegExp(regexpAsStringLiteral, flags);
|
||||
}
|
||||
Reference in New Issue
Block a user