We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6490391 commit 30152ffCopy full SHA for 30152ff
2 files changed
src/index.ts
@@ -74,7 +74,7 @@ function generateSolution(raw: string[]) {
74
// console.log("sln:", solution);
75
76
return solution.map((t) => {
77
- return t.replaceAll('((', '(').replaceAll('))', ')');
+ return t.startsWith('(') ? t.slice(1, -1) : t;
78
});
79
}
80
src/interpreter.ts
@@ -110,7 +110,7 @@ export function interpret<T extends Node>(
110
result = interpret(node.argument, scope, solution);
111
112
solution.push(`#${++id}`);
113
- solution.push(`(${node.name}(#${id}))`);
+ solution.push(`${node.name}(#${id})`);
114
115
// execute the keyword handler
116
result = KEYWORDS[node.name](result);
0 commit comments