mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-31 10:05:11 +00:00
Advanced settings search - proper hilighting of unicode, case insensitive
This commit is contained in:
@@ -417,7 +417,7 @@ public class AdvancedSettingsDialog extends AppDialog {
|
||||
}
|
||||
String locNameHtml = locName;
|
||||
if (!filter.trim().equals("")) {
|
||||
locNameHtml = locNameHtml.replaceAll("(?i)" + Pattern.quote(filter), "{bold}$0{/bold}");
|
||||
locNameHtml = Pattern.compile(Pattern.quote(filter), Pattern.UNICODE_CASE + Pattern.CASE_INSENSITIVE).matcher(locNameHtml).replaceAll("{bold}$0{/bold}");
|
||||
}
|
||||
locNameHtml = "<html>" + locNameHtml.replace("&", "&").replace("<", "<").replace(">", ">")+ "</html>";
|
||||
locNameHtml = locNameHtml.replace("{bold}", "<span style=\"background-color:"+hilightBackgroundColorHex+"; color: " + hilightForegroundColorHex + "\">").replace("{/bold}", "</span>");
|
||||
|
||||
Reference in New Issue
Block a user