add support for submodules

This commit is contained in:
eric sciple 2020-02-21 12:29:31 -05:00
parent f219062370
commit 3577377a74
17 changed files with 915 additions and 220 deletions

5
src/regexp-helper.ts Normal file
View file

@ -0,0 +1,5 @@
export function escape(value: string): string {
return value.replace(/[^a-zA-Z0-9_]/g, x => {
return `\\${x}`
})
}