misskeyから外部タンスに流れた投稿中のメンションURLの解釈を修正

This commit is contained in:
tateisu 2018-11-04 08:19:35 +09:00
parent 0bb7906ff7
commit ed8ae0bcbe
1 changed files with 1 additions and 1 deletions

View File

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