Commit 41417a75 authored by Mygod's avatar Mygod

Refine regex in KcpCliPreference

parent 25cfb162
...@@ -26,7 +26,7 @@ class KcpCliPreference(context: Context, attrs: AttributeSet) extends SummaryEdi ...@@ -26,7 +26,7 @@ class KcpCliPreference(context: Context, attrs: AttributeSet) extends SummaryEdi
!line.startsWith(" --help,") && !line.startsWith(" --help,") &&
!line.startsWith(" --version,")) !line.startsWith(" --version,"))
.mkString("\n") .mkString("\n")
.replaceAll("[ ]{2,}", "\n") .replaceAll(" {2,}", "\n")
.substring(1)) // remove 1st \n .substring(1)) // remove 1st \n
.show()): DialogInterface.OnClickListener) .show()): DialogInterface.OnClickListener)
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment