(str: string)
| 18 | const reReplaceRegExp = /[|\\{}()[\]^$+*?.-]/g |
| 19 | |
| 20 | function escapeStringRegexp(str: string) { |
| 21 | // see also: https://github.com/lodash/lodash/blob/2da024c3b4f9947a48517639de7560457cd4ec6c/escapeRegExp.js#L23 |
| 22 | if (reHasRegExp.test(str)) { |
| 23 | return str.replace(reReplaceRegExp, '\\$&') |
| 24 | } |
| 25 | return str |
| 26 | } |
| 27 | |
| 28 | const nextFontGoogleFontLoader: FontLoader = async ({ |
| 29 | functionName, |
searching dependent graphs…