Skip to content

Commit

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

0 comments on commit da67a61

Please sign in to comment.