1// Rudimentary code for matching globs with ? and *
2// Escape the dots, change * to .* and ? to .
3// and make it match entire string
4new RegExp
5(
6 '^' +
7 rx.replaceAll('\.', '\\.')
8 .replaceAll('*', '.*')
9 .replaceAll('?', '.') +
10 '$'
11)