Commit 8c5d52d
authored
Fix and clean up get_tag tag lookup (#16)
* fix: quote grep patterns in get_tag to match version delimiter correctly
The unquoted \. was likely a typo for a literal dot, but it expands to .
(any char), which silently matches the - delimiter after the version.
Quote the patterns and use an explicit - to match the actual tag format.
* refactor: use braces instead of subshell in get_tag
No need to fork a subshell for the grep fallback; a brace group works
the same way and avoids the overhead.1 parent 7fa4f34 commit 8c5d52d
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
0 commit comments