Skip to content

Commit c09e4b2

Browse files
Merge pull request #23 from finn-vgtl/patch-1
Fix `.indexOf()` call on integers when using numbers as node id's
2 parents 7c9a5ce + d7623e0 commit c09e4b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/redot-stringify/redot-stringify.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use strict";
22

33
function utilQuotesAndEscaping(text) {
4-
if (text.indexOf(" ") > 0) {
4+
if (text.toString().indexOf(" ") > 0) {
55
return '"' + text.replace('"', '\\"') + '"';
66
}
77

0 commit comments

Comments
 (0)