Skip to content

Commit

Permalink
Merge pull request #23 from finn-vgtl/patch-1
Browse files Browse the repository at this point in the history
Fix `.indexOf()` call on integers when using numbers as node id's
  • Loading branch information
ChristianMurphy authored Jul 5, 2022
2 parents 7c9a5ce + d7623e0 commit c09e4b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/redot-stringify/redot-stringify.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict";

function utilQuotesAndEscaping(text) {
if (text.indexOf(" ") > 0) {
if (text.toString().indexOf(" ") > 0) {
return '"' + text.replace('"', '\\"') + '"';
}

Expand Down

0 comments on commit c09e4b2

Please sign in to comment.