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:
parent
1296a831e9
commit
60f0d83872
1 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue