adobe/brackets — pull request #1509 by jbalsas (2012-08-29 22:54:26+00:00)
Title: - Fix for Issue #391 

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 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?