Skip to content

Commit

Permalink
attempt fix
Browse files Browse the repository at this point in the history
  • Loading branch information
grantcopley committed Sep 29, 2024
1 parent ecf4fa9 commit 64057f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/preprocessor/TemplatePreprocessor.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ component {
if ( counter == 1 ) {
content = replaceNoCase( content, "</cbwire:script>", "</cfsavecontent>", "all" );
}
content = replaceNoCase( content, "<cbwire:script>", "<cfsavecontent variable=""attributes.returnValues.script#counter#"">" );
content = replaceNoCase( content, "<cbwire:script>", "<cfsavecontent variable=""attributes.returnValues.script#counter#"">", "one" );
if ( findNoCase( "<cbwire:script>", content ) ) {
content = parseScripts( content, counter + 1 );
}
Expand All @@ -45,7 +45,7 @@ component {
if ( counter == 1 ) {
content = replaceNoCase( content, "</cbwire:assets>", "</cfsavecontent>", "all" );
}
content = replaceNoCase( content, "<cbwire:assets>", "<cfsavecontent variable=""attributes.returnValues.assets#counter#"">" );
content = replaceNoCase( content, "<cbwire:assets>", "<cfsavecontent variable=""attributes.returnValues.assets#counter#"">", "one");
if ( findNoCase( "<cbwire:assets>", content ) ) {
content = parseAssets( content, counter + 1 );
}
Expand Down

0 comments on commit 64057f3

Please sign in to comment.