Appearance
转义 RegExp 字符串中特殊的字符。
import { escapeRegExp } from '@base-web-kits/base-tools-ts'; escapeRegExp('[lodash](https://lodash.com/)'); // 结果: '\[lodash\]\(https://lodash\.com/\)'
string (string)
(string)