I knew I forgot something... fixed greedy regex which was supposed to be non-greedy for Lua minification.
parent
d9942319a5
commit
a183baebb4
|
@ -20,8 +20,8 @@ namespace GarrysMod.AddonCreator.Addon
|
||||||
private readonly string _stripCommentsRegex = string.Join("|", new[]
|
private readonly string _stripCommentsRegex = string.Join("|", new[]
|
||||||
{
|
{
|
||||||
// block comments
|
// block comments
|
||||||
@"\/\*.*\*\/",
|
@"\/\*.*?\*\/",
|
||||||
@"\-\-\[\[.*\]\]",
|
@"\-\-\[\[.*?\]\]",
|
||||||
|
|
||||||
// line comments
|
// line comments
|
||||||
@"//([^\r\n]*?)(?<linebreak>[\r\n]+)",
|
@"//([^\r\n]*?)(?<linebreak>[\r\n]+)",
|
||||||
|
|
Loading…
Reference in New Issue