UNPKG

vremel

Version:

JavaScript date utility library for Temporal API

10 lines (8 loc) 224 B
import { escapeRegExp } from "./_escapeRegExp.js"; /** @internal */ export function unionRegExp(strings: string[]): string { return strings .map((str) => escapeRegExp(str)) .filter((str) => str !== "") .join("|"); }