Skip to content

Commit c665954

Browse files
committed
remove trimRight() to support IE11
1 parent 675e525 commit c665954

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xmlstr2xmlnode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ const getTraversalObj = function(xmlData, options) {
254254
const separatorIndex = tagExp.indexOf(" ");
255255
let tagName = tagExp;
256256
if(separatorIndex !== -1){
257-
tagName = tagExp.substr(0, separatorIndex).trimRight();
257+
tagName = tagExp.substr(0, separatorIndex).replace(/\s\s*$/, '');
258258
tagExp = tagExp.substr(separatorIndex + 1);
259259
}
260260

0 commit comments

Comments
 (0)