@kayahr/assert
    Preparing search index...

    Function assertMatch

    • Asserts that given value matches the given regular expression.

      Parameters

      • value: string

        The value to check.

      • regexp: string | RegExp

        The regular expression to match against.

      • Optionalreason: string

        Optional reason added to exception message when assertion fails.

      Returns void

      AssertionError when value does not match the regular expression.