Do simple endsWith
matching for docker view
This saves the need for a regex
This commit is contained in:
parent
4c5936b2aa
commit
c6bae0f797
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
# Only allow requests to `.docker` records
|
||||
view docker {
|
||||
expr name() matches '^[a-zA-Z0-9-_]+\\.docker\\.$'
|
||||
expr name() endsWith '.docker.'
|
||||
}
|
||||
|
||||
# Strip the `.docker` suffix
|
||||
|
|
Loading…
Reference in a new issue