WSDOT-GIS / geospatial-metadata

A JavaScript library for parsing and converting Geospatial metadata XML
The Unlicense
2 stars 0 forks source link

Make CSS class name function replacement regex global. #2

Open JeffJacobson opened 8 years ago

JeffJacobson commented 8 years ago

Currently, the function that converts strings to valid CSS names only replaces the first instance of an invalid character. Add the g (global) option so that all invalid characters are replaced.