Refactoring

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

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

Loading…
Cancel
Save