-
@captn3m0 @BiNZGi |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I am not a regex expert and cannot say much about your issue. @captn3m0 is the right man for that 😄 |
Beta Was this translation helpful? Give feedback.
-
@BiNZGi i am also not an expert but each time i play with it i get more and more fun , it is like a video game which you love it because of you couldnt beat it :D ❤️ |
Beta Was this translation helpful? Give feedback.
-
The This is important since we want to match the "complete" tag in all cases, and not a partial tag. As an example from your screenshot, we want to match So the correct way to use our regexes would be to:
function get_remote_tags() {
D=$(mktemp -d)
cd "$D"
git init --bare
git fetch --quiet --tags --filter=blob:none "$1"
git tag -l
}
See this link for example against the linux kernel: https://rubular.com/r/SUaaKX6Z1bGok3 If you remove the
which is not what we want |
Beta Was this translation helpful? Give feedback.
The
$
in a regex denotes end of the line. If you are copy-pasting arbitary text, where the matching text (tag name) might be anywhere, the$
will break things since it expects the matching part to end the string.This is important since we want to match the "complete" tag in all cases, and not a partial tag. As an example from your screenshot, we want to match
v5.18
, but notv5.18-rc1
. The code that powers our automation lists the tags from the upstream project, and checks them one by one, which is akin to listing all the tags with a newline between them.So the correct way to use our regexes would be to:
get_re…