Use a regex to split the hxml file.
Allows skipping the "replace newlines with spaces" step, and ensures that there aren't any blank arguments.
This commit is contained in:
@@ -67,10 +67,9 @@ class FlashPlatform extends PlatformTarget {
|
||||
|
||||
}
|
||||
|
||||
hxml = StringTools.replace (hxml, "\n", " ");
|
||||
hxml = StringTools.trim (hxml);
|
||||
|
||||
var args = hxml.split (" ");
|
||||
var args = new EReg ("\\s+", "g").split (hxml);
|
||||
var strip;
|
||||
|
||||
while ((strip = args.indexOf ("-swf-header")) > -1) {
|
||||
@@ -298,4 +297,4 @@ class FlashPlatform extends PlatformTarget {
|
||||
@ignore public override function trace ():Void {}
|
||||
@ignore public override function uninstall ():Void {}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user