1
0
mirror of https://github.com/akaessens/NoFbEventScraper synced 2025-06-05 23:29:13 +02:00

add link name after fixing

This commit is contained in:
akaessens
2020-07-29 11:51:10 +02:00
parent b88d429af1
commit 53ff8e4609

View File

@ -70,7 +70,7 @@ public class FbScraper extends AsyncTask<Void, Void, Void> {
private String fixLinks(String description_in) {
try {
// @[152580919265:274:MagentaMusik 360] -> m.facebook.com/152580919265
return description_in.replaceAll("@\\[([0-9]{10,}):[0-9]{3,}:[^\\]]*\\]", "m.facebook.com/$1");
return description_in.replaceAll("@\\[([0-9]{10,}):[0-9]{3}:([^\\]]*)\\]", "m.facebook.com/$1 ($2)");
} catch (Exception e) {
e.printStackTrace();