I knew I forgot something... fixed greedy regex which was supposed to be non-greedy for Lua minification.

master
Icedream 2014-12-11 05:04:30 +01:00
parent d9942319a5
commit a183baebb4
1 changed files with 2 additions and 2 deletions

View File

@ -20,8 +20,8 @@ namespace GarrysMod.AddonCreator.Addon
private readonly string _stripCommentsRegex = string.Join("|", new[]
{
// block comments
@"\/\*.*\*\/",
@"\-\-\[\[.*\]\]",
@"\/\*.*?\*\/",
@"\-\-\[\[.*?\]\]",
// line comments
@"//([^\r\n]*?)(?<linebreak>[\r\n]+)",