1
0
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:
Ivan Ivanenko
2024-03-26 11:27:43 +02:00
parent 4966f955e3
commit 4708b73057
2 changed files with 7 additions and 1 deletions

View File

@@ -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>

View File

@@ -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(" ")) {