mirror of
https://github.com/prymitive/karma
synced 2026-05-05 03:16:51 +00:00
Correctly anchor regex silences
Silence regex rules are not anchored, be explicit
This commit is contained in:
@@ -111,7 +111,7 @@ var UI = (function(params) {
|
||||
var pval;
|
||||
isRegex = false;
|
||||
if (values.length > 1) {
|
||||
pval = "(" + values.join("|") + ")";
|
||||
pval = "^(?:" + values.join("|") + ")$";
|
||||
isRegex = true;
|
||||
} else {
|
||||
pval = values[0];
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user