From 8d8a5e322f27988b1c09c8367b20b487828b0fe8 Mon Sep 17 00:00:00 2001 From: David Majda Date: Sat, 2 Apr 2011 16:06:33 +0200 Subject: [PATCH] Fix @VERSION substitution in build-time preprocessing The code didn't work properly when multiple @VERSION strings were present in a preprocessed file. --- Jakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jakefile b/Jakefile index e545b1d..bac9be9 100644 --- a/Jakefile +++ b/Jakefile @@ -99,7 +99,7 @@ function preprocess(file) { } else { return line; } - }).join("\n").replace("@VERSION", PEGJS_VERSION); + }).join("\n").replace(/@VERSION/g, PEGJS_VERSION); } desc("Generate the grammar parser");