This commit is contained in:
2025-01-27 22:41:25 +09:00
parent c91142a039
commit bf44daf2e3
4209 changed files with 422452 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
/**
* 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, flags) {
var regexpAsStringLiteral = parts.join('');
return new RegExp(regexpAsStringLiteral, flags);
}