diff --git a/packages/redot-stringify/redot-stringify.js b/packages/redot-stringify/redot-stringify.js index 8bb837f..b48eba8 100644 --- a/packages/redot-stringify/redot-stringify.js +++ b/packages/redot-stringify/redot-stringify.js @@ -1,7 +1,7 @@ "use strict"; function utilQuotesAndEscaping(text) { - if (text.indexOf(" ") > 0) { + if (text.toString().indexOf(" ") > 0) { return '"' + text.replace('"', '\\"') + '"'; }