mirror of
https://github.com/discourse/discourse.git
synced 2025-06-10 18:37:48 +08:00
FIX: IE not supporting regex negative lookbehind
This commit is contained in:
@ -2,7 +2,7 @@ import parseHTML from 'discourse/helpers/parse-html';
|
|||||||
|
|
||||||
const trimLeft = text => text.replace(/^\s+/,"");
|
const trimLeft = text => text.replace(/^\s+/,"");
|
||||||
const trimRight = 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 {
|
class Tag {
|
||||||
constructor(name, prefix = "", suffix = "", inline = false) {
|
constructor(name, prefix = "", suffix = "", inline = false) {
|
||||||
|
Reference in New Issue
Block a user