mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-29 11:15:51 +00:00
Fixed autolinking
This commit is contained in:
parent
4a82d413fc
commit
935952c036
1 changed files with 4 additions and 2 deletions
|
@ -244,12 +244,14 @@ public class HtmlHelper {
|
|||
if (node instanceof TextNode) {
|
||||
TextNode tnode = (TextNode) node;
|
||||
|
||||
String text = tnode.text();
|
||||
Matcher matcher = PatternsCompat.WEB_URL.matcher(text);
|
||||
Matcher matcher = PatternsCompat.WEB_URL.matcher(tnode.text());
|
||||
if (matcher.matches()) {
|
||||
Element span = document.createElement("span");
|
||||
|
||||
int pos = 0;
|
||||
String text = tnode.text();
|
||||
|
||||
matcher.reset();
|
||||
while (matcher.find()) {
|
||||
boolean linked = false;
|
||||
Node parent = tnode.parent();
|
||||
|
|
Loading…
Reference in a new issue