сборка сапфора для тестирования пользователем
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
package Common.Utils.Validators;
|
||||
import Common.Constants.Constants;
|
||||
import Common.Global;
|
||||
import Common.Utils.Utils;
|
||||
|
||||
@@ -79,7 +80,7 @@ public class ShellParser {
|
||||
test = test.toLowerCase();
|
||||
state = test.endsWith(userName.toLowerCase()) ? ShellParserState.MachineName : ShellParserState.Skip;
|
||||
invitationBuilder.append(c);
|
||||
} else if (isNameCharacter()||(c=='['))
|
||||
} else if (isNameCharacter() || (c == '['))
|
||||
invitationBuilder.append(c);
|
||||
else
|
||||
state = ShellParserState.Skip;
|
||||
@@ -132,13 +133,14 @@ public class ShellParser {
|
||||
userName = userName_in;
|
||||
}
|
||||
public static void printChar() {
|
||||
int code = c;
|
||||
if ((!return_active) || (c == '\n')) {
|
||||
System.out.print(c == '\r' ? ("\\r") :
|
||||
|
||||
(c=='\n'? "\\n\n":c));
|
||||
if (isCommandSymbol())
|
||||
System.out.print(Utils.RBrackets(code));
|
||||
if (c != Constants.boop) {
|
||||
int code = c;
|
||||
if ((!return_active) || (c == '\n')) {
|
||||
System.out.print(c == '\r' ? ("\\r") :
|
||||
(c == '\n' ? "\\n\n" : c));
|
||||
if (isCommandSymbol())
|
||||
System.out.print(Utils.RBrackets(code));
|
||||
}
|
||||
}
|
||||
}
|
||||
public static void ReadInvitation(InputStreamReader fromServer) {
|
||||
@@ -172,7 +174,7 @@ public class ShellParser {
|
||||
break;
|
||||
}
|
||||
}
|
||||
// System.out.println(Utils.Brackets(state));
|
||||
// System.out.println(Utils.Brackets(state));
|
||||
// }
|
||||
} else
|
||||
state = ShellParserState.End;
|
||||
|
||||
Reference in New Issue
Block a user