Skip to content

Commit

Permalink
Change namespaceAndPath to regexResult
Browse files Browse the repository at this point in the history
  • Loading branch information
DAreRodz committed May 16, 2024
1 parent a76b0c2 commit 6456504
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/interactivity/src/vdom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,9 @@ export function toVdom( root: Node ): Array< ComponentChild > {
if ( attributeName === ignoreAttr ) {
ignore = true;
} else {
const namespaceAndPath =
nsPathRegExp.exec( attributeValue );
const namespace = namespaceAndPath?.[ 1 ] ?? null;
let value: any = namespaceAndPath?.[ 2 ] ?? attributeValue;
const regexResult = nsPathRegExp.exec( attributeValue );
const namespace = regexResult?.[ 1 ] ?? null;
let value: any = regexResult?.[ 2 ] ?? attributeValue;
try {
value = value && JSON.parse( value );
} catch ( e ) {}
Expand Down

0 comments on commit 6456504

Please sign in to comment.