mirror of
https://github.com/Coloryr/AllMusic.git
synced 2026-11-25 15:44:31 +00:00
up
This commit is contained in:
1 parent
a81f620811
commit
abd11eba3f
13 files changed
+118
-89
No files matched your search
@@ -4,7 +4,7 @@ import java.util.regex.Pattern;
|
||||
|
||||
public class Function {
|
||||
public static boolean isInteger(String str) {
|
||||
Pattern pattern = Pattern.compile("^[-+]?[\\d]*$");
|
||||
Pattern pattern = Pattern.compile("^[-+]?\\d*$");
|
||||
return pattern.matcher(str).matches();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user