Skip to content

Commit 568e841

Browse files
committed
Merge pull request #859 from S-Aoi/development
quickbuild bug fix
2 parents 98a907c + 9d3073e commit 568e841

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

External/Plugins/AS3Context/Compiler/FlexShells.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class FlexShells
2929
static public event SyntaxErrorHandler SyntaxError;
3030

3131
static readonly public Regex re_SplitParams =
32-
new Regex("[\\s](?<switch>\\-[A-z0-9\\-\\.]+)", RegexOptions.Compiled | RegexOptions.Singleline);
32+
new Regex("[\\s](?<switch>[-+][A-z0-9\\-\\.]+)", RegexOptions.Compiled | RegexOptions.Singleline);
3333

3434
static private readonly string[] PATH_SWITCHES = {
3535
"-compiler.context-root","-context-root",
@@ -321,6 +321,10 @@ public void QuickBuild(FileModel theFile, string flex2Path, bool requireTag, boo
321321
}
322322
}
323323
isPath = true;
324+
// remove quotes
325+
if (arg.StartsWith("\"") && arg.EndsWith("\""))
326+
arg = arg.Substring(1, arg.Length - 2);
327+
324328
if (!arg.StartsWith("\\") && !Path.IsPathRooted(arg))
325329
arg = Path.Combine(buildPath, arg);
326330
}

0 commit comments

Comments
 (0)