Fetch latest tag from GitHub API and detect if it requires a pattern rewrite.
Currently supports tagged releases starting with "v".
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
- correct undefined variable
- use removeprefix instead of lstrip to avoid stripping other characters
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>