All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.prod.util.escapeRegex.js.map Maven / Gradle / Ivy

{
  "version": 3,
  "sources": ["../../../src/util/escapeRegex.ts"],
  "sourcesContent": ["/**\n * Escapes a regular expression text so that it can be used in a regular expression.\n *\n * @param { string } text the string to be interpreted literally\n * @returns { string } the escaped string\n */\nconst escapeRegex = (text: string) => {\n\treturn text.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n};\n\nexport default escapeRegex;\n"],
  "mappings": "aAMA,MAAMA,EAAeC,GACbA,EAAK,QAAQ,sBAAuB,MAAM,EAGlD,eAAeD",
  "names": ["escapeRegex", "text"]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy