diff --git a/test/data/testrunner.js b/test/data/testrunner.js index df57e3ac..eabcd8e6 100644 --- a/test/data/testrunner.js +++ b/test/data/testrunner.js @@ -74,7 +74,7 @@ function test(name, callback, nowait) { name = _config.currentModule + " module: " + name; var filter = location.search.slice(1); - if ( filter && encodeURIComponent(name).indexOf(filter) == -1 ) + if ( filter && !new RegExp(filter).test(encodeURIComponent(name)) ) return; synchronize(function() {