ResValueFactory: modified decPattern a little.

This commit is contained in:
Ryszard Wiśniewski 2010-03-13 14:27:47 +01:00
parent 6d8bd55ba6
commit 5577654105

View File

@ -170,7 +170,8 @@ public class ResValueFactory {
return null; return null;
} }
private final static Pattern decPattern = Pattern.compile("-?\\d+"); private final static Pattern decPattern =
Pattern.compile("-?(?:[0-2]|)\\d{1,9}");
private final static Pattern hexPattern = private final static Pattern hexPattern =
Pattern.compile("-?[0-9a-fA-F]{1,8}"); Pattern.compile("-?[0-9a-fA-F]{1,8}");
private final static Pattern resIdPattern = private final static Pattern resIdPattern =