tactivos / grunt-cdn

79 stars 53 forks source link

don't need to global replace when splitting strings #32

Closed hamtie closed 10 years ago

hamtie commented 10 years ago

This fixes accidental string matching. Since I changed the regexs to split the document by elements before applying the regexs, then this will only replace the first match (which is what you want).