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 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 set to true.

§
prefix?: string
[src]

The input string must have the prefix specified here. Note: empty prefix is not allowed, please use 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 prefix is not allowed, please use regex instead. Examples: * abc matches the value xyz.abc