jessemiller/HamlPy — pull request #75 by bcoughlan (2012-03-25 07:56:14+00:00)
Title: #74 Fix

I wanted to get rid of the regex but the alternative of parsing the attribute string manually was slower and more complicated.

Moved the regular expressions to the top of the file to avoid recompiling them each time the function is called. Ran it against the hotshot profiler and it was too slow for my liking. Also split them up to make it more readable.