Merge remote-tracking branch 'origin/master'

pull/30/head
GKF 6 years ago
commit f1b7d91325
  1. 5
      app/src/main/java/io/legado/app/utils/StringExtensions.kt

@ -1,3 +1,6 @@
package io.legado.app.utils
fun String?.strim() = if (this.isNullOrBlank()) null else this.trim()
fun String?.strim() = if (this.isNullOrBlank()) null else this.trim()
fun String.isAbsUrl() = this.startsWith("http://", true)
|| this.startsWith("https://", true)

Loading…
Cancel
Save