ElectronicBabylonianLiterature/ebl-frontend

View on GitHub
src/fragmentarium/domain/escapeRegExp.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import _ from 'lodash'

export default function escapeRegExp(arr: string[]): string {
  return arr.map((character) => _.escapeRegExp(character)).join('|')
}