tactivos / grunt-cdn

79 stars 53 forks source link

Add support for multiline script tags #81

Closed leanderlindahl closed 1 year ago

leanderlindahl commented 5 years ago

grunt-cdn previously didn't catch script tags when scripts are formatted like so:

<script
  type="text/javascript"
  src="dir/file.js"
  data-other="something"
></script>

This patch has removed blank space in the "splitter" "<script" (was "<script ") and has expanded regexp to include white space and line breaks.