karma-ng-html2js-preprocessor
karma-ng-html2js-preprocessor copied to clipboard
Missing prependSufix preprocessor argument
When issuing a HTTP GET with arguments: Ex. myapp/index.html?v=1.0 it fails with error:
Error: Unexpected request: GET myapp/index.html?v=1.0
adding a prependSufix in createHtml2JsPreprocessor fixes this:
...createHtml2JsPreprocessor ... {
...
var prependSufix = config.prependSufix || '';
...
return prependPrefix + filepath.replace(stripPrefix, '').replace(stripSufix, '') + prependSufix;