Skip to content

Commit

Permalink
use a clone of the object to avoid getting the same as xml2js
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdesl committed Feb 15, 2024
1 parent b70995b commit 3aef157
Show file tree
Hide file tree
Showing 3 changed files with 4,260 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/parse-attribs.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
var GLYPH_DESIGNER_ERROR = 'chasrset'

module.exports = function parseAttributes(obj) {
obj = Object.assign({}, obj)
if (GLYPH_DESIGNER_ERROR in obj) {
obj['charset'] = obj[GLYPH_DESIGNER_ERROR]
delete obj[GLYPH_DESIGNER_ERROR]
Expand Down
Loading

0 comments on commit 3aef157

Please sign in to comment.