ifandelse/gulp-imports — pull request #2 by MarcusLongmuir (2014-05-08 15:22:00+00:00)
Title: Replaced use of String.replace with simple String.substring usage

This is my fix for an issue I had when using gulp-imports with jQuery.

The string "$&" appears on line 848 of jquery.js v1.11.1

$& is a special operator for the String.replace function and breaks the intended use.

I have used the index of the match and the length of the matched string to replace it.