Skip to content

Commit

Permalink
remove trimRight() to support IE11
Browse files Browse the repository at this point in the history
  • Loading branch information
amitguptagwl committed Jun 12, 2020
1 parent 675e525 commit c665954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xmlstr2xmlnode.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ const getTraversalObj = function(xmlData, options) {
const separatorIndex = tagExp.indexOf(" ");
let tagName = tagExp;
if(separatorIndex !== -1){
tagName = tagExp.substr(0, separatorIndex).trimRight();
tagName = tagExp.substr(0, separatorIndex).replace(/\s\s*$/, '');
tagExp = tagExp.substr(separatorIndex + 1);
}

Expand Down

0 comments on commit c665954

Please sign in to comment.