examples/generic.yml: use path.matches in condition

The string here uses a character set with path.contains, which will
not work in CEL. We need to use path.matches to use regex syntax.
This commit is contained in:
Alan Orth
2025-05-17 23:46:40 +03:00
parent 85a8f0d9ec
commit c16f0863ae

View File

@@ -27,7 +27,7 @@ conditions:
# Old IE browsers
- 'userAgent.matches("MSIE ([2-9]|10|11)\\.")'
# Old Linux browsers
- 'userAgent.contains("Linux i[63]86") || userAgent.contains("FreeBSD i[63]86")'
- 'userAgent.matches("Linux i[63]86") || userAgent.matches("FreeBSD i[63]86")'
# Old Windows browsers
- 'userAgent.matches("Windows (3|95|98|CE)") || userAgent.matches("Windows NT [1-5]\\.")'
# Old mobile browsers