2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-06-20 20:00:33 +03:00

feat(plugin-helper): lowercase resulting tag names (#42)

This commit is contained in:
Nikolay Kostyurin
2019-07-28 15:28:46 +02:00
committed by GitHub
parent 001de51f34
commit 597c2a9008
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ describe('Parser', () => {
'Foo', 'Foo',
' ', ' ',
{ {
tag: 'Bar', tag: 'bar',
attrs: {}, attrs: {},
content: [] content: []
}, },
+1 -1
View File
@@ -3,7 +3,7 @@ import { getNodeLength, appendToNode } from './index';
class TagNode { class TagNode {
constructor(tag, attrs, content) { constructor(tag, attrs, content) {
this.tag = tag; this.tag = tag.toLowerCase();
this.attrs = attrs; this.attrs = attrs;
this.content = [].concat(content); this.content = [].concat(content);
} }