diff options
author | Francis Lavoie <[email protected]> | 2022-09-01 23:12:37 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2022-09-01 23:12:37 -0400 |
commit | 7d5108d132d3bccfd8d83bc3fc2dbc46afde20ae (patch) | |
tree | f476b207d820a4dcf64ab9bca1c92af12a384da2 /caddyconfig/caddyfile | |
parent | 7c35bfa57cb402e82b28118b69c265df3e8c94fd (diff) | |
download | caddy-7d5108d132d3bccfd8d83bc3fc2dbc46afde20ae.tar.gz caddy-7d5108d132d3bccfd8d83bc3fc2dbc46afde20ae.zip |
httpcaddyfile: Add shortcut for expression matchers (#4976)
Diffstat (limited to 'caddyconfig/caddyfile')
-rw-r--r-- | caddyconfig/caddyfile/lexer.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/caddyconfig/caddyfile/lexer.go b/caddyconfig/caddyfile/lexer.go index 4a23524d0..5605a6aa3 100644 --- a/caddyconfig/caddyfile/lexer.go +++ b/caddyconfig/caddyfile/lexer.go @@ -191,3 +191,7 @@ func Tokenize(input []byte, filename string) ([]Token, error) { } return tokens, nil } + +func (t Token) Quoted() bool { + return t.wasQuoted > 0 +} |