We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e91d99 commit 18535b4Copy full SHA for 18535b4
lib/src/interpreter.dart
@@ -272,7 +272,7 @@ class CATInterpreter {
272
final List<String> modifiedCommands = <String>[];
273
for (final String k in toExecute) {
274
if (k.startsWith("go")) {
275
- final List<String> oldPosition = k.trim().split("");
+ final List<String> oldPosition = k.replaceAll(RegExp("[go()]"), "").trim().split("");
276
if (_rows.containsKey(oldPosition[0]) &&
277
_columns.containsKey(oldPosition[1])) {
278
modifiedCommands.add("go(${i[j]})");
0 commit comments