matthewp / corset

Declarative data bindings, bring your own backend.

Home Page:https://corset.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

invalid var reference is using a different var that almost matches

JaneOri opened this issue · comments

Reduced example:
https://codepen.io/propjockey/pen/poLppJX/2c1726852bc96c8bf7703c95486a97c5?editors=1010
The each-template prop uses a var that is referencing --bad-match which doesn't exist, but is substituted with the value on var called --bad-match2.

If --bad-match2 ends with anything other than digits, the collision bug does not occur. Ex:
--bad-match22 found by var(--bad-match)
--bad-matcha (correctly) NOT found by var(--bad-match)
--bad-match-2 (correctly) NOT found by var(--bad-match)

probably related to #155

Ty! 💜