@gruhn/regex-utils
    Preparing search index...

    Function singleChar

    • Regex that matches the single given character. E.g. singleChar('a') is equivalent to /^a$/. Meta characters like "$", ".", etc don't need to be escaped, i.e. singleChar('.') will match "." literally and not any-single-character.

      Parameters

      • char: string

      Returns StdRegex

      if char is not exactly one character.