misskeyから外部タンスに流れた投稿中のメンションURLの解釈を修正
This commit is contained in:
parent
0bb7906ff7
commit
ed8ae0bcbe
|
@ -29,7 +29,7 @@ open class TootAccount(parser : TootParser, src : JSONObject) {
|
|||
|
||||
// host, user ,(instance)
|
||||
internal val reAccountUrl : Pattern =
|
||||
Pattern.compile("\\Ahttps://([A-Za-z0-9._-]+)/@([A-Za-z0-9_]+(?:@[A-Za-z0-9._-]+)?)(?:\\z|[?#])")
|
||||
Pattern.compile("\\Ahttps://([A-Za-z0-9._-]+)/@([A-Za-z0-9_]+)(?:@([A-Za-z0-9._-]+))?(?:\\z|[?#])")
|
||||
|
||||
fun getAcctFromUrl(url : String) : String? {
|
||||
val m = reAccountUrl.matcher(url)
|
||||
|
|
Loading…
Reference in New Issue