mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 06:38:29 +02:00
Added Jsoup logging
This commit is contained in:
@@ -1363,15 +1363,18 @@ public class EntityRule {
|
||||
}
|
||||
|
||||
Element e = d.select(selector).first();
|
||||
if (e == null)
|
||||
if (e == null) {
|
||||
notes = null;
|
||||
else {
|
||||
Log.w("Nothing selected Jsoup=" + selector);
|
||||
} else {
|
||||
notes = e.ownText();
|
||||
if (!TextUtils.isEmpty(regex)) {
|
||||
Pattern p = Pattern.compile(regex);
|
||||
Matcher m = p.matcher(notes);
|
||||
if (m.matches() && m.groupCount() > 0)
|
||||
notes = m.group(1);
|
||||
else
|
||||
Log.w("Nothing selected regex=" + regex + " value=" + notes);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user