We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 359c71a commit 05eb7e6Copy full SHA for 05eb7e6
1 file changed
krscript/src/main/java/com/omarea/krscript/model/ShellHandlerBase.java
@@ -111,7 +111,7 @@ protected void onReaderMsg(Object msg) {
111
}
112
113
// toast:[text...]
114
- if (log.matches("^toast:\\[.*]$")) {
+ if (log.startsWith("toast:[")) {
115
int end = log.lastIndexOf(']');
116
if (end > "toast:[".length()) {
117
String text = log.substring("toast:[".length(), end)
@@ -121,7 +121,7 @@ protected void onReaderMsg(Object msg) {
121
return;
122
123
124
- if (log.matches("^am:\\[(start|broadcast|service)\\|.+]$")) {
+ if (log.startsWith("am:[")) {
125
String prefix = "am:[";
126
int end = log.lastIndexOf("]");
127
if (end > prefix.length()) {
0 commit comments