From fca41ee8867d55e8abb633e5545792b14eb0f88e Mon Sep 17 00:00:00 2001 From: Greg Venech Date: Mon, 1 Jul 2019 09:27:10 -0400 Subject: [PATCH] fix(plugin-helper): lowercase all tag names so presets pick them up BBCode is usually specified as lower case and all the presets define lowercase tags so capitalized tags like `[B]` or `[QUOTE]` won't be handle properly. This should fix that because the parser uses this constructor/class before any presets are run. --- packages/bbob-plugin-helper/src/TagNode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bbob-plugin-helper/src/TagNode.js b/packages/bbob-plugin-helper/src/TagNode.js index 528b6b88..a479bed4 100644 --- a/packages/bbob-plugin-helper/src/TagNode.js +++ b/packages/bbob-plugin-helper/src/TagNode.js @@ -3,7 +3,7 @@ import { getNodeLength, appendToNode } from './index'; class TagNode { constructor(tag, attrs, content) { - this.tag = tag; + this.tag = tag.toLowerCase(); this.attrs = attrs; this.content = [].concat(content); }