From 742e3f36938f8f60501f92cc83028447d1c286e8 Mon Sep 17 00:00:00 2001 From: atbest Date: Thu, 23 May 2019 04:46:15 -0400 Subject: [PATCH] Added String extensions --- app/src/main/java/io/legado/app/utils/StringExtensions.kt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 app/src/main/java/io/legado/app/utils/StringExtensions.kt diff --git a/app/src/main/java/io/legado/app/utils/StringExtensions.kt b/app/src/main/java/io/legado/app/utils/StringExtensions.kt new file mode 100644 index 000000000..957d5b091 --- /dev/null +++ b/app/src/main/java/io/legado/app/utils/StringExtensions.kt @@ -0,0 +1,3 @@ +package io.legado.app.utils + +fun String?.strim() = if (this.isNullOrBlank()) null else this.trim() \ No newline at end of file