chriseppstein/compass — pull request #739 by zanker (2012-02-27 17:29:18+00:00)
Title: Allow numeric filenames in sprites

From #738, this will allow numeric filenames in Compass by checking if the full selector is valid CSS rather than just the tag name, so "16x16/100.png" would still be an invalid sprite because it turns into ".16x16-100", but "icons/100.png" would be fine because it turns into ".icons-100".

For the selector validation in the scss file, I'm not entirely a fan of it being there as a new method rather than using the existing ones. But it seemed like the best solution to avoid hacking it into the existing sprite_has_selector and sprite_does_not_have_parent methods.