* Fix math.js simplify issue.
* Remove debug statements.
* Adds fact to the mix.
* Stash
* Fix greedy quantifier in trig and log/ln
* Don't trigger on anything with stuff after =
* allow triggering on <func> <number>
* Both sides of =
* Fix expressions.
* Tighten up triggering based on valid expressions.
* Remove dumper obj
* Tighten up word triggering.
* Allow only one currency through.
* Kill off symbols in js if allowed through.
* Allow negative numbers.
* Add support for negated numbers.
* Fix initialize issue.
* Refactor code slightly
* Tightened regexs
* Require space between log and input
* Begin deprecating perl backend.
* Deprecate backend [skip ci]
* Routine checkin of code.
* Added docs + preprocessing.
* Deprecate perl eval backend.
* Checking in some code.'
* Handle bad search expressions by defaulting to 0
* Add ability to recover with grace from bad expressions from search bar.
* Removed unnessesary perl code.
* Add support for factorials with !
* cleanup trailing spaces
* Removed trig constants.
* Support tau in expression.
* Removed ln preprocess.
* Support leading =. Removed moot code.
* Add support for euro and pound.
* Removed nat lang query parsing from js.
* strip duplicate operators
* Fixed legacy spacing issue in tests.
* Remove empty exponent.
* Bail on hex looking entries.
* better handling of repeated operators
* Remove max import
* revert back to old check for 3+ operators
* relax phone number regex for now
* remove silly test
* prevent anything but allowed ops in the query
no negative nums
* Uncomment neg catch and move after garbage is removed
* Add more tests
* The hex check can be simplified since the trigger isn't allowing most of it
Allow expressions like 1e9 to pass
* Allow = in query
decimal/negatives with e
* Remove debug
* add test for 1e9 query
* 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
* Update trigger
Use Safe for evaluation with the minimum functions
Removed unnecessary capturing, redundant function calls
* Add some tests
* Remove eval since we don't allow die
Add comment about debugging failed reval
* Add rv2gv from :base_orig to allow compat with Safe 2.35
Remove prtf since that was in :base_orig which was removed
* Remove unneeded opsets
* Silence all of reval's warnings
* Add STRICT
* Update trigger
Use Safe for evaluation with the minimum functions
Removed unnecessary capturing, redundant function calls
* Add some tests
* Remove eval since we don't allow die
Add comment about debugging failed reval
* Add rv2gv from :base_orig to allow compat with Safe 2.35
Remove prtf since that was in :base_orig which was removed
* Remove unneeded opsets
* Silence all of reval's warnings
* Update trigger
Use Safe for evaluation with the minimum functions
Removed unnecessary capturing, redundant function calls
* Add some tests
* Remove eval since we don't allow die
Add comment about debugging failed reval
* Add rv2gv from :base_orig to allow compat with Safe 2.35
Remove prtf since that was in :base_orig which was removed
* Remove unneeded opsets
This adds the ability for numbers to contian spaces or underscores. It
also makes me recognize once more how brittle all of these
inter-relationships are.
With the addition of the number styling role, we've improved the output
for very small floats. We don't need to round them any longer, since
they produce comprehensible display values and don't break anything.
This one is much harder to hit, because the dotted quads must have 3
digits in each of the last 3 positions and they tend to start zero-ing
the mask earlier, but might as well cover this better, too.
Thanks to @mintsoft for the heads-up.
If we get a dotted quad, slash and a number in the range of 0-32, it
seems more likely this is talking about network addresses, than trying
to do a calculation.
I, personally, think it's unlikely we ever should be dealing with dotted
quads, but I want to leave in the possiblity of a pasted-in euro-style
value.
Fixes#541.