Details
Description
The warning about regular expressions missing slashes around them is not clear enough and is easy to misinterpret, especially if the pattern itself uses slashes or backslashes.
For example, the following is logged with a simple pattern like match01=hello world in namedserverfilter:
2024-04-19 11:12:54 warning: match01: Missing slashes (/) around a regular expression is deprecated.
|
2024-04-19 11:12:54 warning: match01: Missing slashes (/) around a regular expression is deprecated.
|
2024-04-19 11:12:54 warning: match01: Missing slashes (/) around a regular expression is deprecated.
|
The fact that it's logged multiple times is also very confusing.
An improvement to the warning would be something like this that shows the correct syntax:
2024-04-19 11:12:54 warning: Missing slashes (/) around a regular expression is deprecated, use 'match01=/hello world/' instead of 'match01=hello world'.
|