Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

StringMatcher

import type { StringMatcher } from "https://googleapis.deno.dev/v1/trafficdirector:v3.ts";

Specifies the way to match a string. [#next-free-field: 9]

interface StringMatcher {
contains?: string;
exact?: string;
ignoreCase?: boolean;
prefix?: string;
safeRegex?: RegexMatcher;
suffix?: string;
}

§Properties

§
contains?: string
[src]

The input string must have the substring specified here. .. note:: Empty contains match is not allowed, please use safe_regex instead. Examples:

  • abc matches the value xyz.abc.def
§

Use an extension as the matcher type. [#extension-category: envoy.string_matcher]

§
exact?: string
[src]

The input string must match exactly the string specified here. Examples: * abc only matches the value abc.

§
ignoreCase?: boolean
[src]

If true, indicates the exact/prefix/suffix/contains matching should be case insensitive. This has no effect for the safe_regex match. For example, the matcher data will match both input string Data and data if this option is set to true.

§
prefix?: string
[src]

The input string must have the prefix specified here. .. note:: Empty prefix match is not allowed, please use safe_regex instead. Examples: * abc matches the value abc.xyz

§
safeRegex?: RegexMatcher
[src]

The input string must match the regular expression specified here.

§
suffix?: string
[src]

The input string must have the suffix specified here. .. note:: Empty suffix match is not allowed, please use safe_regex instead. Examples: * abc matches the value xyz.abc