improve link detection when stored in xml

example:
<url>https://terminolo.gy/</url>
This commit is contained in:
Boris Faure 2016-12-25 18:18:16 +01:00
parent 41c4479dc5
commit afe4b928bc
1 changed files with 15 additions and 0 deletions

View File

@ -361,6 +361,20 @@ termio_link_find(Evas_Object *obj, int cx, int cy,
goforward = EINA_FALSE;
break;
}
switch (txt[0])
{
case '"':
case '\'':
case '`':
case '<':
case '>':
case '[':
case ']':
case '{':
case '}':
case '|':
goto out;
}
res = ty_sb_add(&sb, txt, txtlen);
if (res < 0) goto end;
@ -381,6 +395,7 @@ termio_link_find(Evas_Object *obj, int cx, int cy,
y2 = new_y2;
}
out:
if (sb.len)
{
Eina_Bool is_file = _is_file(sb.buf);