Skip to content

Commit

Permalink
fixed bug "namespace sometimes is considered as a tag name"
Browse files Browse the repository at this point in the history
  • Loading branch information
vkiryukhin committed Mar 19, 2012
1 parent b070eb7 commit e7c8450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vkbeautify.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ vkbeautify.prototype.xml = function(text) {
} else
// <elm></elm> //
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
Expand Down

0 comments on commit e7c8450

Please sign in to comment.