Only try to convert exact domains using the IDN library.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2020-02-14 17:24:01 +01:00
parent 843e46d84a
commit b2cc349abf
4 changed files with 32 additions and 19 deletions

View File

@@ -123,6 +123,12 @@ function sub(index, entry, arg) {
list = "#list-regex";
heading = "#h3-regex";
locallistType = arg;
} else {
// Extract possible IDN part
// This extracts "xn--allestrungen-9ib.de" from,
// e.g. "allestörungen.de (xn--allestrungen-9ib.de)"
var raw_domain = entry.split("(");
entry = raw_domain[raw_domain.length - 1].split(")")[0];
}
var alInfo = $("#alInfo");