Skip to content

Commit 997e138

Browse files
authored
Update details on regex in router config (#449)
1 parent b523941 commit 997e138

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: doc/configuration.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1230,7 +1230,7 @@ A route has the following fields:
12301230
- `type` - If defined, only matches queries of this type, `A`, `AAAA`, `MX`, etc. Optional.
12311231
- `types` - List of types. If defined, only matches queries whose type is in this list. Optional.
12321232
- `class` - If defined, only matches queries of this class (`IN`, `CH`, `HS`, `NONE`, `ANY`). Optional.
1233-
- `name` - A regular expression that is applied to the query name. Note that dots in domain names need to be escaped. Optional.
1233+
- `name` - A regular expression that is applied to the query name. Note that dots in domain names need to be escaped. To match case-insensitive, prefix with `(?i)`, e.g. `"(?i)example\.com$"`. See [Syntax](https://github.com/google/re2/wiki/Syntax) for details. Optional.
12341234
- `source` - Network in CIDR notation. Used to route based on client IP. Optional.
12351235
- `weekdays` - List of weekdays this route should match on. Possible values: `mon`, `tue`, `wed`, `thu`, `fri`, `sat`, `sun`. Uses local time, not UTC.
12361236
- `after` - Time of day in the format HH:mm after which the rule matches. Uses 24h format. For example `09:00`. Note that together with the `before` parameter it is possible to accidentally write routes that can never trigger. For example `after=12:00 before=11:00` can never match as both conditions have to be met for the route to be used.

0 commit comments

Comments
 (0)