Skip to content

Commit

Permalink
Updated regexes to handle new shadowjar naming
Browse files Browse the repository at this point in the history
  • Loading branch information
DV8FromTheWorld committed Aug 5, 2019
1 parent ef610ea commit 0eaeed1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/dv8tion/discord/YuiInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public class YuiInfo
"@versionRevision@",
"@versionBuild@"
);
private static final String URL_REGEX = "\\<a href=\"Yui-withDependencies-[0-9]*\\.[0-9]*\\.[0-9]*_[0-9]*\\.jar\">(Yui-withDependencies-[0-9]*\\.[0-9]*\\.[0-9]*_[0-9]*\\.jar)\\<\\/a\\>";
private static final String VERSION_REGEX = "Yui-withDependencies-([0-9]*\\.[0-9]*\\.[0-9]*_[0-9]*)\\.jar";
public static final String URL_REGEX = "\\<a href=\"Yui-[0-9]*\\.[0-9]*\\.[0-9]*_[0-9]*-withDependencies\\.jar\">(Yui-[0-9]*\\.[0-9]*\\.[0-9]*_[0-9]*-withDependencies\\.jar)\\<\\/a\\>";
private static final String VERSION_REGEX = "Yui-([0-9]*\\.[0-9]*\\.[0-9]*_[0-9]*)-withDependencies\\.jar";

public static String getLatestBuildUrl()
{
Expand Down

0 comments on commit 0eaeed1

Please sign in to comment.