Commits
Erik Berg authored 6ec2bc7c83a
.........T [ZBXCTR-22] Refactor filters
fix capturing `-`.
When the regex changed from
/...[\w\.-].../
to
/...[\w\.-\/].../
the addition of \/ after - changed its interpretation from
\. matches the character . with index 46 literally
- matches the character - with index 45 literally
to
\.-\/ matches a single character in the range between . (index 46) and / (index 47)
Which is not what we want. Swapping for
/...[\w\-\.\/].../
we get
\- matches the character - with index 45 literally
\. matches the character . with index 46 literally
\/ matches the character / with index 47 literally