Refine regex in KcpCliPreference
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user