diff options
author | Allan Wang <me@allanwang.ca> | 2017-07-19 13:20:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-19 13:20:03 -0700 |
commit | 37a9f9057d7879080b7b982f987bf0b82d0d774c (patch) | |
tree | 32aff4d5f509089ea67a8594ae0372ef90c81ad8 /app/src/main/kotlin | |
parent | 495b1bd49835070ca43a523831caee0f70079604 (diff) | |
download | frost-37a9f9057d7879080b7b982f987bf0b82d0d774c.tar.gz frost-37a9f9057d7879080b7b982f987bf0b82d0d774c.tar.bz2 frost-37a9f9057d7879080b7b982f987bf0b82d0d774c.zip |
Dev - minor fixes (#75)v1.3.4
* Add lint
* Add new libs
* Update libs and add friends tab
* Aggressively hide nonrecent posts
* Update dependencies
* Add php to most recents
* Add full size image downloader
* Fix css cleaner
* Fix notification and circle
* Bring back regex
Diffstat (limited to 'app/src/main/kotlin')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/injectors/JsInjector.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/injectors/JsInjector.kt b/app/src/main/kotlin/com/pitchedapps/frost/injectors/JsInjector.kt index 1b7dad1c..7e9fdcad 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/injectors/JsInjector.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/injectors/JsInjector.kt @@ -25,7 +25,7 @@ class JsBuilder { override fun toString(): String { val builder = StringBuilder().append("!function(){") if (css.isNotBlank()) { - val cssMin = css.replace(Regex("[\\r\\n\\t\\f\\v]\\s*"), "") + val cssMin = css.replace(Regex("\\s*\n\\s*"), "") builder.append("var a=document.createElement('style');a.innerHTML='$cssMin';document.head.appendChild(a);") } if (js.isNotBlank()) |