mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-13 15:27:16 -06:00
UIDefaultsLoader: do not detect string values that start and end with '"', but also contain ", as string (e.g. font value "Roboto Mono", "Ubuntu Mono")
This commit is contained in:
@@ -410,7 +410,7 @@ class UIDefaultsLoader
|
|||||||
// check whether value type is specified in the value
|
// check whether value type is specified in the value
|
||||||
if( value.startsWith( "#" ) )
|
if( value.startsWith( "#" ) )
|
||||||
valueType = ValueType.COLOR;
|
valueType = ValueType.COLOR;
|
||||||
else if( value.startsWith( "\"" ) && value.endsWith( "\"" ) ) {
|
else if( value.startsWith( "\"" ) && value.indexOf( '"', 1 ) == value.length() - 1 ) {
|
||||||
valueType = ValueType.STRING;
|
valueType = ValueType.STRING;
|
||||||
value = value.substring( 1, value.length() - 1 );
|
value = value.substring( 1, value.length() - 1 );
|
||||||
} else if( value.startsWith( TYPE_PREFIX ) ) {
|
} else if( value.startsWith( TYPE_PREFIX ) ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user