Commit d833d04
committed
perf(formatters): hoist SCP git URL regex to package level in IsValidGitURL
Move regexp.MustCompile for SCP-style git URLs out of IsValidGitURL
so the pattern is compiled once at init instead of on every call.
Signed-off-by: Matías Insaurralde <matias@insaurral.de>1 parent f8df65b commit d833d04
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
196 | 198 | | |
197 | 199 | | |
198 | 200 | | |
199 | | - | |
200 | 201 | | |
201 | 202 | | |
0 commit comments