substack/jsup — pull request #2 by dominictarr (2012-06-08 08:49:20+00:00)
Title: fix issue #1

When calculating the length to replace,
JSON.stringify it first, so if characters will be added will be counted too.

Also, modified the test to give coverage for string values.