Commit 9b7a97c
fix(wardley): Allow integer coordinates in annotations
Extended WARDLEY_NUMBER terminal to match both decimals (0.5) and
integers (1, 100) to support annotations syntax like [1, 0].
The previous regex /[0-9]+\.[0-9]+/ only matched decimals, causing
parsing errors for integer coordinates in the annotations statement.
Changed to: /[0-9]+\.[0-9]+|[0-9]+/
Fixes GPT Tokeniser test which uses `annotations [1, 0]`
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent f0e729e commit 9b7a97c
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
0 commit comments