Active-CSS / active-css

The epic event-driven browser language for UI with functionality in one-liner CSS. Over 100 incredible CSS commands for DOM manipulation, ajax, reactive variables, single-page application routing, and lots more. Could CSS be the JavaScript framework of the future?
https://activecss.org
Other
42 stars 7 forks source link

Vars in JS not always evaluating correctly #141

Closed bob2517 closed 3 years ago

bob2517 commented 3 years ago

When referencing a variable in JS sections, like create-command, etc., using something like "vars res;", it would evaluate "result", "cheeseyRes" and anything else with res in it, in an un-case-sensitive way to compound the problem, and interpret it as an acss variable when it wasn't.

In the core there was a weird negative look-behind assertion substitute that wasn't working, so the fix was that I removed the assertion and changed strategy slightly. Now it's using \b and \B to check the correct surrounding characters instead and it covers the test cases so far ok it seems.

The fix is done offline and will probably get put on the branch tomorrow.