Skip to content

Commit

Permalink
Fix release script to handle spaces in JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Sep 20, 2016
1 parent a350d03 commit de60510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/release
Expand Up @@ -21,7 +21,7 @@ rewrite("lib/codemirror.js", function(lib) {
"CodeMirror.version = \"" + number + "\"");
});
function rewriteJSON(pack) {
return pack.replace(/"version":"\d+\.\d+\.\d+"/, "\"version\":\"" + number + "\"");
return pack.replace(/"version":\s*"\d+\.\d+\.\d+"/, "\"version\": \"" + number + "\"");
}
rewrite("package.json", rewriteJSON);
rewrite("doc/manual.html", function(manual) {
Expand Down

0 comments on commit de60510

Please sign in to comment.