Skip to content

Commit

Permalink
xmlns split bug is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
vkiryukhin committed Jun 14, 2012
1 parent 753802c commit 1ed2b70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vkbeautify.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ vkbeautify.prototype.xml = function(text,step) {

var ar = text.replace(/>\s{0,}</g,"><")
.replace(/</g,"~::~<")
.replace(/xmlns/g,"~::~xmlns\:")
.replace(/xmlns/g,"~::~xmlns\=")
.replace(/xmlns\:/g,"~::~xmlns:")
.replace(/xmlns\=/g,"~::~xmlns=")
.split('~::~'),
len = ar.length,
inComment = false,
Expand Down

0 comments on commit 1ed2b70

Please sign in to comment.