File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/mgt-element/src/utils Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -241,12 +241,12 @@ export class TemplateHelper {
241241 const childElement = loopChildren [ i ] as HTMLElement ;
242242
243243 const loopExpression = childElement . dataset . for ;
244- const loopTokens = this . trimExpression ( loopExpression ) . split ( / \s + ( i n | o f ) \s + / i) ;
244+ const loopTokens = this . trimExpression ( loopExpression ) . split ( / \s ( i n | o f ) \s / i) ;
245245
246246 if ( loopTokens . length === 3 ) {
247247 // don't really care what's in the middle at this point
248- const itemName = loopTokens [ 0 ] ;
249- const listKey = loopTokens [ 2 ] ;
248+ const itemName = loopTokens [ 0 ] . trim ( ) ;
249+ const listKey = loopTokens [ 2 ] . trim ( ) ;
250250
251251 const list = this . evalInContext ( listKey , context ) ;
252252 if ( Array . isArray ( list ) ) {
You can’t perform that action at this time.
0 commit comments