Class

MatrixGlob

MatrixGlob(glob)

Represents a common Matrix glob. This is commonly used for server ACLs and similar functions.
Constructor

# new MatrixGlob(glob)

Creates a new Matrix Glob
Parameters:
Name Type Description
glob string The glob to convert. Eg: "*.example.org"

View Source helpers/MatrixGlob.ts, line 8

Classes

MatrixGlob
MatrixGlob

Members

# regex

The regular expression which represents this glob.

View Source helpers/MatrixGlob.ts, line 12

RegExp

# regex

The regular expression which represents this glob.

View Source helpers/MatrixGlob.ts, line 44

Methods

# test(val) → {boolean}

Tests the glob against a value, returning true if it matches.
Parameters:
Name Type Description
val string The value to test.

View Source helpers/MatrixGlob.ts, line 59

True if the value matches the glob, false otherwise.
boolean