fix hsla parsing and make mapData regex more robust

fixes #226