-
Bug
-
Resolution: Expected Behavior
-
Normal
-
None
-
None
-
None
The metatools github.RegexMatcher class method match only examines first match of expresion and returning wrong version:
#!/usr/bin/env python from funtoo.pkgtools import github if __name__ == '__main__': r = github.RegexMatcher() v = r.match("xfce4-session-4.18.1") # matches first occurence, returns '4' should_be = "4.18.1" print(f"GRABBY => `{v}`") print(f"should be => `{should_be}`")
One of possible solutions:
1. use findall method and return result of last occurrence of regex
2. throw exception if expresion matches multiple regex occurences
- relates to
-
FL-10063 metatools: Add generic GitLab generator to support GitLab YAML autogens
- Closed