UNPKG

@wordpress/wordcount

Version:
8 lines (7 loc) 700 B
{ "version": 3, "sources": ["../src/stripHTMLComments.ts"], "sourcesContent": ["/**\n * Internal dependencies\n */\nimport type { Settings } from './types';\n\n/**\n * Replaces items matched in the regex with new line.\n *\n * @param settings The main settings object containing regular expressions\n * @param text The string being counted.\n * @return The manipulated text.\n */\nexport default function stripHTMLComments(\n\tsettings: Settings,\n\ttext: string\n): string {\n\treturn text.replace( settings.HTMLcommentRegExp, '' );\n}\n"], "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAYe,SAAR,kBACN,UACA,MACS;AACT,SAAO,KAAK,QAAS,SAAS,mBAAmB,EAAG;AACrD;", "names": [] }