Refine regex in KcpCliPreference

This commit is contained in:
Mygod
2016-08-19 19:52:34 +08:00
parent 25cfb1623a
commit 41417a7546
@@ -26,7 +26,7 @@ class KcpCliPreference(context: Context, attrs: AttributeSet) extends SummaryEdi
!line.startsWith(" --help,") &&
!line.startsWith(" --version,"))
.mkString("\n")
.replaceAll("[ ]{2,}", "\n")
.replaceAll(" {2,}", "\n")
.substring(1)) // remove 1st \n
.show()): DialogInterface.OnClickListener)
}