1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-25 07:23:03 +00:00

Added Jsoup logging

This commit is contained in:
M66B 2023-08-17 09:55:36 +02:00
parent 1296a831e9
commit 60f0d83872

View file

@ -1363,15 +1363,18 @@ public class EntityRule {
} }
Element e = d.select(selector).first(); Element e = d.select(selector).first();
if (e == null) if (e == null) {
notes = null; notes = null;
else { Log.w("Nothing selected Jsoup=" + selector);
} else {
notes = e.ownText(); notes = e.ownText();
if (!TextUtils.isEmpty(regex)) { if (!TextUtils.isEmpty(regex)) {
Pattern p = Pattern.compile(regex); Pattern p = Pattern.compile(regex);
Matcher m = p.matcher(notes); Matcher m = p.matcher(notes);
if (m.matches() && m.groupCount() > 0) if (m.matches() && m.groupCount() > 0)
notes = m.group(1); notes = m.group(1);
else
Log.w("Nothing selected regex=" + regex + " value=" + notes);
} }
} }
} }