Skip to content

Commit

Permalink
Update calculatorWidget.svelte
Browse files Browse the repository at this point in the history
  • Loading branch information
stephtr authored Jan 4, 2025
1 parent e4464ab commit fbf0a5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/src/lib/calculatorWidget.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
let currentResult = '';
export function updateCurrentResult(_: any, ensureResult = false) {
const isSetCommand = currentInput.startsWith('set ');
const isAssignment =
const isAssignment = // TODO: switch to https://github.com/Qalculate/libqalculate/blob/a8b6cf562a3a2fe8dc05b6b466d3ac6782d3654e/src/qalc.cc#L7472
currentInput.includes(':=') || /^\s*\w+(\(\))?\s*=/.test(currentInput);
if (isSetCommand || isAssignment) {
currentResult = '';
Expand Down

0 comments on commit fbf0a5e

Please sign in to comment.