This repository has been archived by the owner on Oct 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Calculator: More fixes -- Trigger regex contained a bug (#3898)
* Restrict some other stuff * Don't require digit * Restrict multiple ops to two or less * reject empty parens/multiple ops * No @, or $ not followed by a number or . * combine char class * add more negative tests * Add ops back, case-insensitive subs, require two ops again * Case-insensitive on multiple ops too * Allow leading negatives * Move the leading neg sub * Better regex for hex input * update tests
- Loading branch information
Showing
2 changed files
with
42 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters