2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-05-15 11:59:37 +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',
' ',
{
tag: 'Bar',
tag: 'bar',
attrs: {},
content: []
},
+1 -1
View File
@@ -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);
}