File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ Object.keys(markdownItHtmlRegexes).forEach((regexName) => {
2020 // this adds support for the `.` character within tag names
2121 markdownItHtmlRegexes [ regexName ] = new RegExp (
2222 regex . source . replace (
23- / \[ A \ -Z a \ -z \] \[ A \ -Z a \ -z 0 \ -9 \\ - \] \* / g,
23+ / \[ A - Z a - z \] \[ A - Z a - z 0 - 9 \\ - \] \* / g,
2424 '[A-Za-z][A-Za-z0-9\\.\\-]*'
2525 ) ,
2626 regex . flags
Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ export default class StringReplacementCache {
1616 const identityHash = lowercaseHash ( match ) ;
1717
1818 const identity = this . identityReplacer (
19- identityHash ,
20- match ,
21- ...values
22- ) ;
19+ identityHash ,
20+ match ,
21+ ...values
22+ ) ;
2323
2424 this . _cache [ identity ] = this . outputReplacer ( match , ...values ) ;
2525
@@ -37,7 +37,7 @@ export default class StringReplacementCache {
3737 . replace (
3838 new RegExp (
3939 identity . replace (
40- / [ \- \ [\] \/ \{ \} \( \) \* \+ \? \ .\\ \^ \$ \ |] / g,
40+ / [ - [ \] / { } ( ) * + ? . \\ ^ $ | ] / g,
4141 '\\$&'
4242 ) ,
4343 'g'
You can’t perform that action at this time.
0 commit comments