Skip to content

Commit

Permalink
re
Browse files Browse the repository at this point in the history
  • Loading branch information
DM committed Nov 14, 2024
1 parent 1abeb2b commit 7c91730
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parser/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ export function rml(strings: TemplateStringsArray, ...expressions: RMLTemplateEx

acc = (prefix +(initialValue ?? '')).replace(/<(\w[\w-]*)\s+([^>]+)$/, `<$1 ${existingRef?'':`${RESOLVE_ATTRIBUTE}="${ref}" `}$2`);
}
} else if(/<\S+(?:\s+[^=>]+(?:=(?:'[^']*'|"[^"]*"|\S+|[^>]+))?)*(?:\s+\.\.\.)?$/.test(accPlusString.substring(lastTag)) && /^(?:[^<]*>|\s+\.\.\.)/.test(nextString)) {
// FIXME: ^ ^^^^^^^^^ why are we doing this?
} else if(/<\S+(?:\s+[a-z0-9_][a-z0-9_-]*(?:=(?:'[^']*'|"[^"]*"|\S+|[^>]+))?)*(?:\s+\.\.\.)?$/.test(accPlusString.substring(lastTag)) && /^(?:[^<]*>|\s+\.\.\.)/.test(nextString)) {
// FIXME: ^ ^^^^^^^^^ why are we doing this?
// Mixin Sink
// Use Cases:
// <some-tag some-attribute="some-value" ${mixin}></some-tag>
Expand Down

0 comments on commit 7c91730

Please sign in to comment.