Skip to content

Commit

Permalink
Update InlineCode.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Cross1111 committed Oct 11, 2024
1 parent c14e0e5 commit afbc254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/hooks/InlineCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default class InlineCode extends ParagraphBase {
}

rule() {
const ret = { begin: '(`+)[ ]*', end: '[ ]?\\1', content: '([^`\\n]*(?:\\n[^`\\n]*)*)(?=\\1|$)' };
const ret = { begin: '(`+)[ ]*', end: '[ ]?\\1', content: '([^`\\n]*(?:\\n[^`\\n]*)*)(?=\\1|$)', };

Check failure on line 44 in src/core/hooks/InlineCode.js

View workflow job for this annotation

GitHub Actions / build

Replace `·content:·'([^`\\n]*(?:\\n[^`\\n]*)*)(?=\\1|$)',·};·` with `content:·'([^`\\n]*(?:\\n[^`\\n]*)*)(?=\\1|$)'·};`
ret.reg = compileRegExp(ret, 'g');
return ret;
}
Expand Down

0 comments on commit afbc254

Please sign in to comment.