Skip to content

Commit

Permalink
perf: type for replace
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrum committed Jul 26, 2021
1 parent 6090060 commit 94ebb8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const parser = (html: string, options: Options = {}): Node[] => {
Object.keys(attrs).forEach((key: string) => {
const object: Attributes = {};

object[key] = attrs[key].replace(/"/g, '"');
object[key] = String(attrs[key]).replace(/"/g, '"');
Object.assign(result, object);
});

Expand Down

0 comments on commit 94ebb8d

Please sign in to comment.