Skip to content

Commit 05eb7e6

Browse files
committed
Upload file
1 parent 359c71a commit 05eb7e6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

krscript/src/main/java/com/omarea/krscript/model/ShellHandlerBase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ protected void onReaderMsg(Object msg) {
111111
}
112112

113113
// toast:[text...]
114-
if (log.matches("^toast:\\[.*]$")) {
114+
if (log.startsWith("toast:[")) {
115115
int end = log.lastIndexOf(']');
116116
if (end > "toast:[".length()) {
117117
String text = log.substring("toast:[".length(), end)
@@ -121,7 +121,7 @@ protected void onReaderMsg(Object msg) {
121121
return;
122122
}
123123

124-
if (log.matches("^am:\\[(start|broadcast|service)\\|.+]$")) {
124+
if (log.startsWith("am:[")) {
125125
String prefix = "am:[";
126126
int end = log.lastIndexOf("]");
127127
if (end > prefix.length()) {

0 commit comments

Comments
 (0)