Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

correctly calculate value length

  • Loading branch information...
commit cc92844d09b3e6456256d7b237a50d9807f12d75 1 parent b27c417
@dominictarr dominictarr authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  index.js
View
2  index.js
@@ -45,7 +45,7 @@ var jsup = module.exports = function (src) {
var start = c[0].start.pos - 2;
if (c[0].start.pos === c[0].end.pos) {
- var end = start + c[1].toString().length;
+ var end = start + JSON.stringify(c[1]).length;
}
else {
var end = c[0].end.pos - 1;
Please sign in to comment.
Something went wrong with that request. Please try again.