class
Analyzer::Specification::CloudflareWrangler
- Analyzer::Specification::CloudflareWrangler
- Analyzer::Specification::SpecificationEngine
- Analyzer
- Reference
- Object
Defined in:
analyzer/analyzers/specification/cloudflare_wrangler.crConstant Summary
-
METHOD_ANY =
"ANY" -
ROUTE_PATTERN_RE =
/\A(?:[a-z][a-z0-9+.-]*:\/\/)?([^\/]+)(\/.*)?\z/i -
A route pattern is
[scheme://]<host><path>—example.com/api/*,*.example.com/*,https://example.com/api/*. -
TOML_INLINE_TABLE_RE =
/\{[^}]*\}/ -
TOML_PATTERN_RE =
/(?:^|[\s{,])pattern\s*=\s*"([^"]+)"/m -
Fallback for a
wrangler.tomlthe TOML shard refuses.pattern = "..."only ever appears inside aroutesentry in a wrangler config, so it can be scanned document-wide; the bare-string form has no such marker and is recovered from inside theroutes = [ … ]array only. -
TOML_ROUTES_ARRAY_RE =
/^\s*routes\s*=\s*\[([^\]]*)\]/m -
TOML_STRING_RE =
/"([^"]+)"/