Update JsExtensions.kt

pull/2604/head
iyhkhtrk 2 years ago committed by GitHub
parent a6147c2d80
commit 1b806c1f6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/src/main/java/io/legado/app/help/JsExtensions.kt

@ -375,12 +375,12 @@ interface JsExtensions : JsEncodeUtils {
}
/* hexString 解码为utf8String*/
fun hexDecode(hex: String): String? {
fun hexDecodeToString(hex: String): String? {
return HexUtil.decodeHexStr(hex)
}
/* utf8 编码为hexString */
fun hexEncode(utf8: String): String? {
fun hexEncodeToString(utf8: String): String? {
return HexUtil.encodeHexStr(utf8)
}

Loading…
Cancel
Save