mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-22 16:46:28 +01:00
Use a global regex for replaceAll
This commit is contained in:
parent
56faec702c
commit
54fcaf80b0
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ const CODE_BLOCK_END_REGEX = /```$/;
|
||||||
const INLINE_CODE_REGEX = /`[^`]+`/;
|
const INLINE_CODE_REGEX = /`[^`]+`/;
|
||||||
const TWITTER_DOMAIN_REGEX = /(twitter|x)\.com/i;
|
const TWITTER_DOMAIN_REGEX = /(twitter|x)\.com/i;
|
||||||
const TWITTER_MENTION_REGEX = /@[a-zA-Z0-9_]+@(twitter|x)\.com/;
|
const TWITTER_MENTION_REGEX = /@[a-zA-Z0-9_]+@(twitter|x)\.com/;
|
||||||
const TWITTER_MENTION_CAPTURE_REGEX = /(@([a-zA-Z0-9_]+)@(twitter|x)\.com)/;
|
const TWITTER_MENTION_CAPTURE_REGEX = /(@([a-zA-Z0-9_]+)@(twitter|x)\.com)/g;
|
||||||
|
|
||||||
function createDOM(html, isDocumentFragment) {
|
function createDOM(html, isDocumentFragment) {
|
||||||
const tpl = document.createElement('template');
|
const tpl = document.createElement('template');
|
||||||
|
|
Loading…
Reference in a new issue