mirror of
https://github.com/foobnix/LibreraReader.git
synced 2025-10-05 15:52:56 +02:00
fix copy urls with dash
This commit is contained in:
@@ -9,6 +9,8 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
</head>
|
||||
<body>
|
||||
<p>https://librera.mobi/faq/how-to-disable-dashed-lines-red-lines-in-the-Musician-mode</p>
|
||||
<p><a href="https://librera.mobi/faq/how-to-disable-dashed-lines-red-lines-in-the-Musician-mode/">https://librera.mobi/faq/how-to-disable-dashed-lines-red-lines-in-the-Musician-mode/</a></p>
|
||||
<header>
|
||||
<nav>
|
||||
<p>HEADER</p>
|
||||
|
@@ -1206,7 +1206,11 @@ public class TxtUtils {
|
||||
|
||||
LOG.d("filterString-begin", txt);
|
||||
String replaceAll = txt.trim().replace(" ", " ").replace(" ", " ").replaceAll("\\s", " ").trim();
|
||||
replaceAll = replaceAll(replaceAll, "(\\w+)(-\\s)", "$1").trim();
|
||||
if (!txt.contains("http")) {
|
||||
replaceAll = replaceAll(replaceAll, "(\\w+)(-\\s)", "$1").trim();
|
||||
} else {
|
||||
replaceAll = replaceAll.replaceAll("\\s", "");
|
||||
}
|
||||
|
||||
|
||||
if (!replaceAll.contains(" ")) {
|
||||
|
Reference in New Issue
Block a user