You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've created a css test file with all the possible cases I could think of plus the ones from the less suite test. CSSUtils-test.js has also been modified with the unit tests expecting the parsed selectors from CSSUtils.extractAllSelectors() to match the decoded string.
The fix is based on a double replace using two regular expressions. It's left to check if a simple regexp test to avoid the replace call is faster than the replace call itself when its own regexp produces no matches (I guess it should be). Also maybe someone can improve the regular expressions and combine them to avoid the second replace call?
Issue by jbalsas
Wednesday Aug 29, 2012 at 22:54 GMT
Originally opened as adobe/brackets#1509
Possible fix for Issue #391.
I've created a css test file with all the possible cases I could think of plus the ones from the less suite test.
CSSUtils-test.js
has also been modified with the unit tests expecting the parsed selectors fromCSSUtils.extractAllSelectors()
to match the decoded string.The fix is based on a double replace using two regular expressions. It's left to check if a simple regexp test to avoid the replace call is faster than the replace call itself when its own regexp produces no matches (I guess it should be). Also maybe someone can improve the regular expressions and combine them to avoid the second replace call?
jbalsas included the following code: https://github.com/adobe/brackets/pull/1509/commits
The text was updated successfully, but these errors were encountered: