FIX: IE not supporting regex negative lookbehind
This commit is contained in:
parent
035f96d25f
commit
e9cd7af10e
|
@ -2,7 +2,7 @@ import parseHTML from 'discourse/helpers/parse-html';
|
|||
|
||||
const trimLeft = text => text.replace(/^\s+/,"");
|
||||
const trimRight = text => text.replace(/\s+$/,"");
|
||||
const countPipes = text => text.match(/(?<!\\)\|/g).length;
|
||||
const countPipes = text => text.replace(/\\\|/,"").match(/\|/g).length;
|
||||
|
||||
class Tag {
|
||||
constructor(name, prefix = "", suffix = "", inline = false) {
|
||||
|
|
Loading…
Reference in New Issue