diff --git a/vkbeautify.js b/vkbeautify.js index 44092a6..7390ad0 100644 --- a/vkbeautify.js +++ b/vkbeautify.js @@ -74,7 +74,7 @@ vkbeautify.prototype.xml = function(text) { } else // // if( /^<\w/.exec(ar[ix-1]) && /^<\/\w/.exec(ar[ix]) && - /^<\w+/.exec(ar[ix-1]) == /^<\/\w+/.exec(ar[ix])[0].replace('/','')) { + /^<[\w:\-\.\,]+/.exec(ar[ix-1]) == /^<\/[\w:\-\.\,]+/.exec(ar[ix])[0].replace('/','')) { str += ar[ix]; if(!inComment) deep--; } else