We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a3bfe8c + 2f78f74 commit 91bea3dCopy full SHA for 91bea3d
static/routing-tree.js
@@ -115,7 +115,10 @@ function matchLabels(matchers, labelSet) {
115
116
// Compare single matcher to labelSet
117
function matchLabel(matcher, labelSet) {
118
- var v = labelSet[matcher.name];
+ var v = "";
119
+ if (matcher.name in labelSet) {
120
+ v = labelSet[matcher.name];
121
+ }
122
123
if (matcher.isRegex) {
124
return matcher.value.test(v)
@@ -156,7 +159,7 @@ function massage(root) {
156
159
for (var key in root.match_re) {
157
160
var o = {};
158
161
o.isRegex = true;
- o.value = new RegExp(root.match_re[key]);
162
+ o.value = new RegExp("^(?:" + root.match_re[key] + ")$");
163
o.name = key;
164
matchers.push(o);
165
}
0 commit comments