revert "Revert "replace valid attrs with an optimized regex""
revert "Revert "replace valid attrs with an optimized regex""

This reverts commit 35b989b73fdd08a43ff4a441506caed518859894.

styled-components/styled-components,styled-components/styled-components,JamieDixon/styled-components,styled-components/styled-components,JamieDixon/styled-components,css-components/styled-components,JamieDixon/styled-components