@@ -71,7 +71,7 @@ var terminal = new function() {
71
71
READ_STRING: String.fromCharCode(6), // reads string - removes namespace like in common terminal
72
72
READ_CHARACTER: String.fromCharCode(7), // reads character - removes namespace like in common terminal
73
73
AUTHORIZATION_STATUS: String.fromCharCode(8), // alerts client about authorization success. Holds 1/0
74
- WATCH: String.fromCharCode(9)
74
+ WATCH: String.fromCharCode(9) // start watching
75
75
};
76
76
77
77
/**
@@ -400,7 +400,7 @@ var terminal = new function() {
400
400
"about": function() {
401
401
server.submit(terminal.serverActions.EXECUTE, 'for i=0:0.2:$zpi*2 { for u=1:1:($zsin(i)*15 + 15) { w ' +
402
402
'" " } w "# " if (i=1.4) { w "CacheWebTerminal v' + application.version() + '" } elseif (i=1.6) {' +
403
- ' w "for InterSystems Cache" } elseif (i=1.8) { w "by ZitRo" } elseif (i=4.4) { w "In developing ' +
403
+ ' w "for InterSystems Cache" } elseif (i=1.8) { w "by ZitRo" } elseif (i=4.4) { w "In development ' +
404
404
'since Summer, 2013" } elseif (i=4.6) { w "Project page: http://intersystems-ru.github.io/webterm' +
405
405
'inal" } elseif (i=4.8) { w "Use at your own risk!" } elseif (i=5) { w "But believe me, all right' +
406
406
' :)" } w ! h 0.04}');
@@ -1195,7 +1195,7 @@ var terminal = new function() {
1195
1195
var arr = query.match(/("[^"]*")|[^\s"]+/g);
1196
1196
if (!arr) return false;
1197
1197
for (var i = 0; i < arr.length; i++) {
1198
- if (arr[i].match(/ \/[a-z]+/ )) {
1198
+ if (/^ \/[a-z]+$/.test(arr[i] )) {
1199
1199
var command = arr[i].substr(1);
1200
1200
arr.splice(0, i + 1);
1201
1201
var fish = query.substring(0,query.indexOf("/" + command) - 1); // mm, fish
0 commit comments