Update String extension

pull/30/head
atbest 6 years ago
parent 7280335337
commit 49c0ee63b6
  1. 3
      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.isAbsUrl() = this.startsWith("http://", true)
|| this.startsWith("https://", true)

Loading…
Cancel
Save