FIX: IE not supporting regex negative lookbehind

This commit is contained in:
Vinoth Kannan 2017-12-23 23:44:57 +05:30
parent 035f96d25f
commit e9cd7af10e
1 changed files with 1 additions and 1 deletions

View File

@ -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) {