(text: string)
| 60 | }; |
| 61 | |
| 62 | export const escapeRegexp = (text: string): string => text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'); |
| 63 | |
| 64 | export const buildRepoPattern = (repo: string) => { |
| 65 | return `^${escapeRegexp(repo)}$`; |
no test coverage detected