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 64057f3 commit fbe9929
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 @@ -24,9 +24,9 @@ component {
*/
function parseScripts( content, counter = 1 ) {
if ( counter == 1 ) {
content = replaceNoCase( content, "</cbwire:script>", "</cfsavecontent>", "all" );
content = replaceNoCase( content, "</cbwire:script>", "</cf" & "savecontent>", "all" );
}
content = replaceNoCase( content, "<cbwire:script>", "<cfsavecontent 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 Down

0 comments on commit fbe9929

Please sign in to comment.