Skip to content

Commit

Permalink
feat: 编码模块解码功能支持空白符号
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon406 committed Aug 4, 2021
1 parent 89e1363 commit 86b9033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/me/leon/view/EncodeView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class EncodeView : View("编解码") {
get() =
"${if (isEncode) "编码" else "解码"}: $encodeType 输入长度: ${inputText.length} 输出长度: ${outputText.length}"
private val inputText: String
get() = input.text.takeIf { isEncode } ?: input.text.replace("\n|\r\n".toRegex(), "")
get() = input.text.takeIf { isEncode } ?: input.text.replace("\\s".toRegex(), "")
private val outputText: String
get() = output.text

Expand Down

0 comments on commit 86b9033

Please sign in to comment.