commit
f1b7d91325
@ -1,3 +1,6 @@ |
|||||||
package io.legado.app.utils |
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…
Reference in new issue