-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update dep version;fix some class;fix shell
- Loading branch information
1 parent
58c4c70
commit 9746547
Showing
5 changed files
with
8 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
package utils | ||
|
||
import com.github.jasync.sql.db.util.length | ||
|
||
object TextUtils { | ||
fun isTelegramBlankName(userName: String): Boolean { | ||
val chars = userName.toByteArray() | ||
if (chars.isEmpty()) { | ||
return false | ||
} | ||
if (chars.length < 3) return false | ||
if (chars.size < 3) return false | ||
return chars[0] == (-29).toByte() && chars[1] == (-123).toByte() && chars[2] == (-92).toByte() | ||
} | ||
} |