Commit 61c9926
committed
use a multiplication symbol when RHS is a negative number
The regex for the case when there's a real number on the LHS wasn't
checking if the RHS was a negative number, just if it started with a
digit.
Checking the string rendering of the RHS is a bit indirect, but it
articulates that you don't want a string of digits or + or - signs next
to each other.1 parent 6b574b3 commit 61c9926
4 files changed
Lines changed: 12 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
429 | | - | |
430 | | - | |
| 429 | + | |
| 430 | + | |
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17862 | 17862 | | |
17863 | 17863 | | |
17864 | 17864 | | |
17865 | | - | |
17866 | | - | |
| 17865 | + | |
| 17866 | + | |
17867 | 17867 | | |
17868 | 17868 | | |
17869 | 17869 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2334 | 2334 | | |
2335 | 2335 | | |
2336 | 2336 | | |
| 2337 | + | |
| 2338 | + | |
| 2339 | + | |
| 2340 | + | |
| 2341 | + | |
| 2342 | + | |
2337 | 2343 | | |
2338 | 2344 | | |
2339 | 2345 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17198 | 17198 | | |
17199 | 17199 | | |
17200 | 17200 | | |
17201 | | - | |
17202 | | - | |
| 17201 | + | |
| 17202 | + | |
17203 | 17203 | | |
17204 | 17204 | | |
17205 | 17205 | | |
| |||
0 commit comments