Skip to content

Commit

Permalink
Merge pull request #40 from dragan/sake-build-patch
Browse files Browse the repository at this point in the history
Fixing regular expression not to stop at first paren.
  • Loading branch information
bvanderveen committed May 8, 2012
2 parents ef372cf + 553690a commit f3fb784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/sake/_update-assemblyinfo.shade
Expand Up @@ -11,7 +11,7 @@ update-file each='var updateFile in Files.Include(include)'
@{
Action<string, string> replace = (name, value) => {
if (!string.IsNullOrWhiteSpace(value))
updateText = Replace(updateText, name + "\\([^\\)]*\\)", name + "(\"" + value + "\")");
updateText = Replace(updateText, name + "\\([^\\)].*\\)", name + "(\"" + value + "\")");
};
replace("AssemblyVersion", assemblyVersion);
replace("AssemblyFileVersion", assemblyFileVersion);
Expand Down

0 comments on commit f3fb784

Please sign in to comment.