Skip to content

Commit

Permalink
fix: live rendering name parsing edge cases
Browse files Browse the repository at this point in the history
  • Loading branch information
bglw committed Oct 6, 2021
1 parent c41436f commit f7badef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript-modules/live/lib/app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ window.BookshopLive = class BookshopLive {

stack.push({
startNode: currentNode,
name: matches.groups["name"].replace(/\/\w+\..+$/, ''),
name: matches.groups["name"].replace(/\/[\w-]+\..+$/, '').replace(/\..+$/, ''),
bindings: JSON.parse(JSON.stringify(bindings)),
scope
});
Expand Down

0 comments on commit f7badef

Please sign in to comment.