fix version parser
This commit is contained in:
parent
65f28439a8
commit
06bfb179fa
|
|
@ -27,8 +27,10 @@ import java.util.regex.Pattern;
|
|||
public class AppUpdateService extends AppService {
|
||||
public final static String EXTENSION = ".pfapp";
|
||||
private static final String CTX = AppUpdateService.class.getSimpleName();
|
||||
private static final Pattern VERSION_LINK_PATTERN = Pattern.compile("<a\\s+[^>]*href=\"([0-9]+(?:\\.[0-9]+)*\\.pfapp)\"", Pattern.CASE_INSENSITIVE);
|
||||
|
||||
private static final Pattern VERSION_LINK_PATTERN = Pattern.compile(
|
||||
"<a\\s+[^>]*href=\"[^\"]*?([0-9]+(?:\\.[0-9]+)+\\.pfapp)\"",
|
||||
Pattern.CASE_INSENSITIVE
|
||||
);
|
||||
private final String repository;
|
||||
private final Path appLibraryPath;
|
||||
private final Class<?> anchorClass;
|
||||
|
|
|
|||
Loading…
Reference in New Issue