aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/facebook/FbRegex.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-12-29 23:37:10 -0500
committerGitHub <noreply@github.com>2017-12-29 23:37:10 -0500
commit041bafcceadbd5203e95f2692899ac903dd2e883 (patch)
tree9c7294cd32928a6000b04d7ce7b5a3e52cff65c5 /app/src/main/kotlin/com/pitchedapps/frost/facebook/FbRegex.kt
parent32e6b5be0e662bbac22806bcc87259fd1a2e2ed0 (diff)
downloadfrost-1.7.3.tar.gz
frost-1.7.3.tar.bz2
frost-1.7.3.zip
Feature/image retrieval (#581)v1.7.3
* Refactor * Attempt new content * Clean up to make compile friendly * Update docs
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/facebook/FbRegex.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/facebook/FbRegex.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/facebook/FbRegex.kt b/app/src/main/kotlin/com/pitchedapps/frost/facebook/FbRegex.kt
index 24f685be..acc23cad 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/facebook/FbRegex.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/facebook/FbRegex.kt
@@ -24,6 +24,7 @@ val FB_EPOCH_MATCHER: Regex by lazy { Regex(":([0-9]+)") }
val FB_NOTIF_ID_MATCHER: Regex by lazy { Regex("notif_([0-9]+)") }
val FB_MESSAGE_NOTIF_ID_MATCHER: Regex by lazy { Regex("[thread|user]_fbid_([0-9]+)") }
val FB_CSS_URL_MATCHER: Regex by lazy { Regex("url\\([\"|']?(.*?)[\"|']?\\)") }
+val FB_JSON_URL_MATCHER: Regex by lazy { Regex("\"(http.*?)\"") }
operator fun MatchResult?.get(groupIndex: Int) = this?.groupValues?.get(groupIndex)