progress is hard :(
This commit is contained in:
parent
0f045f3b41
commit
db89e4d8d6
Binary file not shown.
|
@ -24,6 +24,7 @@ public class EnumToStringTest {
|
|||
assertTrue(isKeyValueLine("MIN"));
|
||||
assertTrue(isKeyValueLine("MIN = 2,"));
|
||||
assertTrue(isKeyValueLine("MIN = -3,"));
|
||||
assertTrue(isKeyValueLine("Force_4_bytes_size_operation_mode_e = ENUM_32_BITS,"));
|
||||
assertTrue(isKeyValueLine("MIN = 0x02,"));
|
||||
assertTrue(isKeyValueLine("MIN = 0xa2,"));
|
||||
assertTrue(isKeyValueLine("MIN = 0xB2,"));
|
||||
|
|
|
@ -56,6 +56,6 @@ public class EnumsReader {
|
|||
}
|
||||
|
||||
static boolean isKeyValueLine(String line) {
|
||||
return removeSpaces(line).matches("[a-zA-Z_$][a-zA-Z\\d_$]*(=(0x[0-9a-fA-F]+|(-)?[0-9]+))*,?");
|
||||
return removeSpaces(line).matches("[a-zA-Z_$][a-zA-Z\\d_$]*(=(0x[0-9a-fA-F]+|(-)?[0-9]+|([-a-zA-Z\\d_])*))*,?");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue