swc/bundler/tests/.cache/deno/b347172b9485f4da7366eae189c05440e8d9ec39.ts
강동윤 bbaf619f63
fix(bundler): Fix bugs (#1437)
swc_bundler:
 - [x] Fix wrapped esms. (denoland/deno#9307)
 - [x] Make test secure.
2021-03-02 17:33:03 +09:00

17 lines
424 B
TypeScript

// Loaded from https://deno.land/x/segno@v1.1.0/lib/helpers/multilineRegex.ts
/**
* Build RegExp object from an array
* of multiple/multi-line regexp parts
*
* @param {string[]} parts
* @param {string} flags
* @return {object} - RegExp object
*/
export const multilineRegexp = (parts: string[], flags = '') => {
const regexpAsStringLiteral = parts.join('');
return new RegExp(regexpAsStringLiteral, flags);
};