diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-24 18:16:57 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-24 18:16:57 +0300 |
| commit | 7a3bd4f966f7262dd4e242057679826392800817 (patch) | |
| tree | 20eca7be06181f60425adb4a766dc4fc5aa88b9b | |
| parent | 452d31effac83d0737c5a2e558741754d53870b4 (diff) | |
fix(rpn): restrict isValidIdentifier to letters and underscore only (task 2k)
| -rw-r--r-- | internal/rpn/rpn_parse.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/rpn/rpn_parse.go b/internal/rpn/rpn_parse.go index 094f639..af6ff90 100644 --- a/internal/rpn/rpn_parse.go +++ b/internal/rpn/rpn_parse.go @@ -433,7 +433,7 @@ func isValidIdentifier(token string) bool { return false } c := token[0] - return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9') || c == '_' + return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || c == '_' } // extractVariableName extracts a variable name from a token, stripping the leading colon if present. |
