matthewp / corset

Declarative data bindings, bring your own backend.
https://corset.dev/
BSD 2-Clause "Simplified" License
277 stars 2 forks source link

invalid var reference is using a different var that almost matches #159

Open JaneOri opened 2 years ago

JaneOri commented 2 years ago

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! 💜