@@ -114,7 +114,7 @@ function postProcessBlade(html: string): string {
114114 // ---- 1. blade-foreach-auto (from smart-proxy .map()) ----
115115 // These contain $$arrayName__ITEM__.prop$$ markers that need special handling.
116116 html = html . replace (
117- / < b l a d e - f o r e a c h - a u t o [ \s \S ] * ?d a t a - i t e m s = " ( [ ^ " ] + ) " [ \s \S ] * ?> ( [ \s \S ] * ?) < \/ b l a d e - f o r e a c h - a u t o > / g,
117+ / < b l a d e - f o r e a c h - a u t o [ \s \S ] * ?d a t a - i t e m s = " ( [ ^ " ] + ) " [ \s \S ] * ?> ( [ \s \S ] * ?) < \/ b l a d e - f o r e a c h - a u t o \s * > / g,
118118 ( _match , items : string , content : string ) => {
119119 const foreachVar = varToBlade ( items ) ;
120120
@@ -137,7 +137,7 @@ function postProcessBlade(html: string): string {
137137
138138 // ---- 2. blade-foreach (from BladeForEach component) ----
139139 html = html . replace (
140- / < b l a d e - f o r e a c h [ \s \S ] * ?d a t a - i t e m s = " ( [ ^ " ] + ) " [ \s \S ] * ?> ( [ \s \S ] * ?) < \/ b l a d e - f o r e a c h > / g,
140+ / < b l a d e - f o r e a c h [ \s \S ] * ?d a t a - i t e m s = " ( [ ^ " ] + ) " [ \s \S ] * ?> ( [ \s \S ] * ?) < \/ b l a d e - f o r e a c h \s * > / g,
141141 ( _match , items : string , content : string ) => {
142142 const foreachVar = varToBlade ( items ) ;
143143 return `@foreach(${ foreachVar } as $item)\n${ content } \n@endforeach` ;
@@ -146,7 +146,7 @@ function postProcessBlade(html: string): string {
146146
147147 // ---- 3. blade-if (from BladeIf component) ----
148148 html = html . replace (
149- / < b l a d e - i f [ \s \S ] * ?d a t a - c o n d i t i o n = " ( [ ^ " ] + ) " [ \s \S ] * ?> ( [ \s \S ] * ?) < \/ b l a d e - i f > / g,
149+ / < b l a d e - i f [ \s \S ] * ?d a t a - c o n d i t i o n = " ( [ ^ " ] + ) " [ \s \S ] * ?> ( [ \s \S ] * ?) < \/ b l a d e - i f \s * > / g,
150150 ( _match , condition : string , content : string ) => {
151151 const bladeCondition = convertConditionToBlade ( condition ) ;
152152 return `@if(${ bladeCondition } )\n${ content } \n@endif` ;
0 commit comments