Matcher bug
Closed this issue · 1 comments
xpenatan commented
The code below in desktop returns false and dragome returns true.
Its part of the executing code in Bitmapfont which is crashing with libgdx 1.9.5.
Libgdx Nightlies Bitmapfont class was changed so it dint crash when executing UITest.
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Main {
public static void main (String[] args) {
String line = "page id=0 file=\"default.png\"";
Matcher matcher = Pattern.compile(".*id=(\\d+)").matcher(line);
boolean matches = matcher.matches();
System.out.println("matches: " + matches);
}
}
fpetrola commented
Ok, I'll take a look