Bug 1217851 - Fix mozplugin's import-headjs-globals on Windows. r=pbro

This commit is contained in:
Michael Ratcliffe 2015-10-26 13:16:03 +00:00
parent 288855367c
commit 9552a0ce9f

View File

@ -85,7 +85,7 @@ module.exports = function(context) {
Program: function(node) {
var pathAndFilename = this.getFilename();
var processPath = process.cwd();
var isTest = /.*\/browser_.+\.js$/.test(pathAndFilename);
var isTest = /.*[\\/]browser_.+\.js$/.test(pathAndFilename);
if (!isTest) {
return;