Skip to content

Commit d56447f

Browse files
eljammTheAssassin
authored andcommitted
Fix ZSync matching pattern
The "*" at the end of the pattern should be removed, because files that don't end with '.zsync' shouldn't be matched. ex. '.zsync*' matches '.zsync.sha256'
1 parent 55ffffc commit d56447f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/updateinformation/GithubReleasesZsyncUpdateInformation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ namespace appimage::update::updateinformation {
4747
}
4848

4949
// not ideal, but allows for returning a match for the entire line
50-
auto pattern = "*" + filename + "*";
50+
auto pattern = "*" + filename;
5151

5252
const auto& assets = json["assets"];
5353

0 commit comments

Comments
 (0)