karma-ng-html2js-preprocessor icon indicating copy to clipboard operation
karma-ng-html2js-preprocessor copied to clipboard

Root path for project causes basePath stripping to fail

Open RedGlow opened this issue 11 years ago • 0 comments

I'm mapping my project folder to a drive in windows, causing the karma configuration file to be located at a root path (Y:\ in my case). The logic of config.basePath seems to be slightly bugged/inconsistent in this case, because basePath contains a trailing / (Y:/) in this case, instead of stripping it like in other cases. So, the htmlPath computation code, in the file.originalPath.replace(basePath + '/', '') piece of code, causes the replacement to contain a double trailing / (Y://), thus failing the substitution, thus messing up the code that follows.

RedGlow avatar Nov 10 '14 16:11 RedGlow