Allow blank currency symbols (#3946)

Fixes a behavior previously possible before c6de771

I wrote the proper logic in c6de771 to handle blank currency symbols but forgot to remove the Settings check that was preventing blank currency symbols.

Fixes #3945.
This commit is contained in:
Josh Roy 2021-02-19 09:58:42 -05:00 committed by GitHub
parent 1258d2f0a1
commit 158d273dbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -778,7 +778,7 @@ public class Settings implements net.ess3.api.ISettings {
// A valid currency symbol value must be one non-integer character.
private String _getCurrencySymbol() {
String value = config.getString("currency-symbol", "$").trim();
if (value.length() != 1 || value.matches("\\d")) {
if (value.length() > 1 || value.matches("\\d")) {
value = "$";
}
return value;