Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Commit

Permalink
Correctly anchor regex silences
Browse files Browse the repository at this point in the history
Silence regex rules are not anchored, be explicit
  • Loading branch information
prymitive committed Apr 27, 2017
1 parent 106175b commit dd6c3b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/static/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit dd6c3b1

Please sign in to comment.