skill calc: strip out non-digits characters
This commit is contained in:
@@ -98,7 +98,7 @@ class UICalculatorInputArea extends JPanel
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
return Integer.parseInt(field.getText());
|
return Integer.parseInt(field.getText().replaceAll("\\D", ""));
|
||||||
}
|
}
|
||||||
catch (NumberFormatException e)
|
catch (NumberFormatException e)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user