add action
This commit is contained in:
commit
d27be8e73d
102 changed files with 53613 additions and 0 deletions
5
src/regexp-helper.ts
Normal file
5
src/regexp-helper.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
export function escape(value: string): string {
|
||||
return value.replace(/[^a-zA-Z0-9_]/g, x => {
|
||||
return `\\${x}`
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue