Refactoring

pull/199/head
M66B 4 years ago
parent f2c0ea9d4c
commit 8372a939bb

@ -570,10 +570,13 @@ public class HtmlHelper {
int colon = param.indexOf(':');
if (colon <= 0)
continue;
String key = param.substring(0, colon).trim().toLowerCase(Locale.ROOT);
String value = param.substring(colon + 1).toLowerCase(Locale.ROOT)
.replace("!important", "")
String key = param.substring(0, colon)
.trim()
.toLowerCase(Locale.ROOT);
String value = param.substring(colon + 1)
.trim()
.toLowerCase(Locale.ROOT)
.replace("!important", "")
.replaceAll("\\s+", " ");
kv.put(key, value);
}

Loading…
Cancel
Save