Skip to content

Commit 61e7792

Browse files
save file
1 parent 445d38a commit 61e7792

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎utils/editors/html/code-explorer/v1.0/code-explorer-v1.0.html‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,9 +541,14 @@
541541

542542
//if(!tag.startsWith('</')){
543543
//console.log(tag);
544+
/*
544545
var match = tag.match(/^<\s*([a-z0-9\-]+)/i);
545546
var name = match ? match[1].toLowerCase() : '';
547+
*/
548+
var match = tag.match(/^<\s*\/?\s*([a-z0-9\-]+)/i);
549+
var name = match ? match[1].toLowerCase() : '';
546550
if(!name)debugger;
551+
547552
if(name){
548553
var parser = new DOMParser();
549554
var doc = parser.parseFromString(tag,'text/html');

0 commit comments

Comments
 (0)