From 5549249fa76265d60855f08807ff851a574905b4 Mon Sep 17 00:00:00 2001 From: Charlie Egan Date: Mon, 27 Apr 2020 18:04:36 +0100 Subject: [PATCH] Fix minor reference typo Signed-off-by: Charlie Egan --- docs/content/policy-reference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/policy-reference.md b/docs/content/policy-reference.md index c36b469a2d..1d7ba75ccb 100644 --- a/docs/content/policy-reference.md +++ b/docs/content/policy-reference.md @@ -126,7 +126,7 @@ complex types. | ``re_match(pattern, value)`` | true if the ``value`` matches the regex ``pattern`` | | ``output := regex.split(pattern, string)`` | ``output`` is ``array[string]`` representing elements of ``string`` separated by ``pattern`` | | ``regex.globs_match(glob1, glob2)`` | true if the intersection of regex-style globs ``glob1`` and ``glob2`` matches a non-empty set of non-empty strings. The set of regex symbols is limited for this builtin: only ``.``, ``*``, ``+``, ``[``, ``-``, ``]`` and ``\`` are treated as special symbols. | -| ``output := regex.template_match(patter, string, delimiter_start, delimiter_end)`` | ``output`` is true if ``string`` matches ``pattern``. ``pattern`` is a string containing ``0..n`` regular expressions delimited by ``delimiter_start`` and ``delimiter_end``. Example ``regex.template_match("urn:foo:{.*}", "urn:foo:bar:baz", "{", "}")`` returns ``true``. | +| ``output := regex.template_match(pattern, string, delimiter_start, delimiter_end)`` | ``output`` is true if ``string`` matches ``pattern``. ``pattern`` is a string containing ``0..n`` regular expressions delimited by ``delimiter_start`` and ``delimiter_end``. Example ``regex.template_match("urn:foo:{.*}", "urn:foo:bar:baz", "{", "}")`` returns ``true``. | | ``output := regex.find_n(pattern, string, number)`` | ``output`` is an ``array[string]`` with the ``number`` of values matching the ``pattern``. A ``number`` of ``-1`` means all matches. | | ``output := regex.find_all_string_submatch_n(pattern, string, number)`` | ``output`` is an ``array[array[string]]`` with the outer `array` including a ``number`` of matches which match the ``pattern``. A ``number`` of ``-1`` means all matches. |