Skip to content

Commit

Permalink
Fixed <content> replacement with global parameter to fix application …
Browse files Browse the repository at this point in the history
…launch problem where multiple <content> may exists (#869)
  • Loading branch information
rat-moonshine committed Aug 13, 2021
1 parent 587a06e commit 03decc5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ package actionScripts.utils
var airNamespaceValue:Object = versionMapXML[0].xmlns::descriptorNamespace.text()[0];

// replace if appropriate
descriptorContent = descriptorContent.replace(/<content>.*?<\/content>/, "<content>"+ project.swfOutput.path.fileBridge.name +"</content>");
descriptorContent = descriptorContent.replace(/<application xmlns=".*?">/, "<application xmlns=\""+ airNamespaceValue.toString() +"\">");
descriptorContent = descriptorContent.replace(/<content>.*?<\/content>/g, "<content>"+ project.swfOutput.path.fileBridge.name +"</content>");
descriptorContent = descriptorContent.replace(/<application xmlns=".*?">/g, "<application xmlns=\""+ airNamespaceValue.toString() +"\">");
if (descriptorContent.indexOf("_") != -1)
{
// MOON-108
Expand Down

0 comments on commit 03decc5

Please sign in to comment.