forked from shadowfacts/Tusker
Detect Misskey links properly
This commit is contained in:
parent
1eab964c0b
commit
e91249a876
|
@ -224,12 +224,13 @@ enum PopoverSource {
|
||||||
|
|
||||||
private let statusPathRegex = try! NSRegularExpression(
|
private let statusPathRegex = try! NSRegularExpression(
|
||||||
pattern:
|
pattern:
|
||||||
"(^/@[a-z0-9_]+/\\d{18})" // mastodon
|
"(^/@[a-z0-9_]+/\\d{18})" // mastodon
|
||||||
+ "|(^/notice/[a-z0-9]{18})" // pleroma
|
+ "|(^/notice/[a-z0-9]{18})" // pleroma
|
||||||
+ "|(^/p/[a-z0-9_]+/\\d{18})" // pixelfed
|
+ "|(^/notes/[a-z0-9]{10})" // misskey
|
||||||
+ "|(^/i/web/post/\\d{18})" // pixelfed web frontend
|
+ "|(^/p/[a-z0-9_]+/\\d{18})" // pixelfed
|
||||||
+ "|(^/u/.+/h/[a-z0-9]{18})" // honk
|
+ "|(^/i/web/post/\\d{18})" // pixelfed web frontend
|
||||||
+ "|(^/@.+/statuses/[a-z0-9]{26})" // gotosocial
|
+ "|(^/u/.+/h/[a-z0-9]{18})" // honk
|
||||||
|
+ "|(^/@.+/statuses/[a-z0-9]{26})" // gotosocial
|
||||||
,
|
,
|
||||||
options: .caseInsensitive
|
options: .caseInsensitive
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue