aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/facebook/FbUrlFormatter.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-09-22 22:47:07 -0700
committerAllan Wang <me@allanwang.ca>2019-09-22 22:47:07 -0700
commit142b95f0ae82a849b1e9ef390a2a068b4c792be6 (patch)
tree10e7cfbca87fdc3ad904d5b0f38e493d088496e1 /app/src/main/kotlin/com/pitchedapps/frost/facebook/FbUrlFormatter.kt
parent981d6ffb409a501e6efcf4fe0cbe719e192beee7 (diff)
downloadfrost-142b95f0ae82a849b1e9ef390a2a068b4c792be6.tar.gz
frost-142b95f0ae82a849b1e9ef390a2a068b4c792be6.tar.bz2
frost-142b95f0ae82a849b1e9ef390a2a068b4c792be6.zip
Optimize imports and update changelog
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/facebook/FbUrlFormatter.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/facebook/FbUrlFormatter.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/facebook/FbUrlFormatter.kt b/app/src/main/kotlin/com/pitchedapps/frost/facebook/FbUrlFormatter.kt
index 2095f8fd..6292f4f0 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/facebook/FbUrlFormatter.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/facebook/FbUrlFormatter.kt
@@ -67,7 +67,7 @@ class FbUrlFormatter(url: String) {
return url
}
cleanedUrl = cleanedUrl.replace("&amp;", "&")
- if (changed && !cleanedUrl.contains("?")) //ensure we aren't missing '?'
+ if (changed && !cleanedUrl.contains("?")) // ensure we aren't missing '?'
cleanedUrl = cleanedUrl.replaceFirst("&", "?")
val qm = cleanedUrl.indexOf("?")
if (qm > -1) {
@@ -82,7 +82,7 @@ class FbUrlFormatter(url: String) {
cleanedUrl = cleanedUrl.replaceFirst(
".facebook.com//",
".facebook.com/"
- ) //sometimes we are given a bad url
+ ) // sometimes we are given a bad url
L.v { "Formatted url from $url to $cleanedUrl" }
return cleanedUrl
}