glob/regexer

    Dark Mode
Search:
Group by:

This module provides the backend for glob pattern parsing and the compilation to regular expressions. While it's re-exported from the main module and importing it separately isn't necessary, it could be imported independently of the main glob package.

Types

GlobSyntaxError = object of CatchableError
  
Raised if the parsing of a glob pattern fails.

Procs

proc globToRegexString(pattern: string; isDos = isDosDefault;
                       ignoreCase = isDosDefault): string {...}{.
    raises: [GlobSyntaxError], tags: [].}
Parses the given pattern glob string and returns a regex string. Syntactic errors will cause a GlobSyntaxError to be raised.