import * as globToRegexp from "glob-to-regexp" ; category export class MatrixGlob { /**
     * The regular expression which represents this glob.
     */ public readonly regex : RegExp ; param { string } glob constructor ( glob ) { const globRegex = globToRegexp ( glob , { extended : false , globstar : false , } ) ; const replaced = globRegex . toString ( ) . replace ( /\\\?/g , "." ) ; this . regex = new RegExp ( replaced . substring ( 1 , replaced . length - 1 ) ) ; } param { string } val returns { boolean } public test ( val ) { return this . regex . test ( val ) ; } }