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:
@ -70,7 +70,7 @@ public class FbScraper extends AsyncTask<Void, Void, Void> {
|
|||||||
private String fixLinks(String description_in) {
|
private String fixLinks(String description_in) {
|
||||||
try {
|
try {
|
||||||
// @[152580919265:274:MagentaMusik 360] -> m.facebook.com/152580919265
|
// @[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) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
Reference in New Issue
Block a user