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:
committed by
GitHub
parent
001de51f34
commit
597c2a9008
@@ -59,7 +59,7 @@ describe('Parser', () => {
|
||||
'Foo',
|
||||
' ',
|
||||
{
|
||||
tag: 'Bar',
|
||||
tag: 'bar',
|
||||
attrs: {},
|
||||
content: []
|
||||
},
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user