jos
0b6c0c13f7
Merge branch 'v4' into v4_constant_node
...
# Conflicts:
# HISTORY.md
2018-01-27 16:58:17 +01:00
jos
5efbb25da8
Merge branch 'develop' into v4
...
# Conflicts:
# HISTORY.md
2018-01-27 16:57:24 +01:00
Harry Sarson
afbbb0ea8a
fixes mapping of implicit multiplication
2018-01-27 15:07:31 +00:00
Max Bruckner
4a7e956242
ConstantNode: Add Fraction specific latex output.
2018-01-25 20:14:06 +01:00
jos
f112348eec
Fixed using the wrong typeof function which was not aware of mathjs types like BigNumber (see #1023 )
2018-01-25 20:07:07 +01:00
jos
3f3d50f7a0
Fixed #833 : the constants true, false, null, undefined, NaN, Infinity, and uninitialized are now parsed as ConstantNodes instead of SymbolNodes in the expression parser
2018-01-23 13:55:57 +01:00
jos
924299c42b
Changed ConstantNode(valueStr, valueType) to ConstantNode(value) (breaking change)
2018-01-23 12:08:29 +01:00
jos
ef607935bd
Replaced == with ===
2018-01-23 09:29:34 +01:00
jos
53e02a87e3
Cleanup unused imports and functions
2018-01-23 09:27:24 +01:00
jos
8b5396baad
Removed the old expression compiler (which uses eval)
2018-01-23 09:19:11 +01:00
jos
1192bb6bbc
Implemented compile without eval (see #1019 )
2018-01-21 18:13:27 +01:00
jos
316cb8761e
Fixed #969 : preven issues with yarn autoclean by renaming an interally used folder "docs" to "embeddedDocs"
2017-12-16 20:33:23 +01:00
jos
270d28b8d2
Update history, add embedded docs for rationalize
2017-12-02 20:34:40 +01:00
jos
a60f3c8d9d
Fixed a security issue where forbidden properties like constructor could be replaced by using unicode characters when creating an object
2017-11-18 20:11:48 +01:00
jos
8d2d48d81b
Fixed a security issue in typed-function allowing arbitrary code execution
2017-11-18 19:39:30 +01:00
jos
b1a2de0270
Update history, fixed a broken unit test for Help
2017-09-30 14:30:29 +02:00
mm151
0a3c48c077
Fix several issues with internal help
2017-09-27 08:59:52 +02:00
Max Bruckner
b2857392bd
OperatorNode: Fix implicit multiplication
...
Fixes implicit multiplication when parenthesis is 'auto' and operands
are ConstantNodes.
This is handled by detecting that case and printing parentheses for
ParenthesisNodes even though they normally wouldn't with parenthesis
set to 'auto'.
2017-08-13 20:57:41 +02:00
Max Bruckner
1f4909c625
OperatorNode: switch-case in calculate..Parentheses
2017-08-13 19:26:37 +02:00
jos
967e65cceb
Refactored usage of properties .isNode, .isSymbolNode, etc. into using functions like type.isNode(x) for security
2017-08-12 14:38:03 +02:00
jos
949261f92b
Refactored usage of properties .isRange, .isIndex, .isResultSet, and .isHelp for their (safe) function equivalents
2017-08-12 13:31:09 +02:00
jos
fa01e993af
Refactored x && x.isMatrix === true into type.isMatrix(x), same with isDenseMatrix and isSparseMatrix
2017-08-12 13:24:39 +02:00
jos
e10dd5bce5
Refactored x && x.isBigNumber === true into type.isBigNumber(x)
2017-08-12 11:54:53 +02:00
jos
26e70a4acd
Refactored x.isComplex === true into type.isComplex(x)
2017-08-12 11:32:40 +02:00
jos
a18f2068f3
Fixed toString of a parsed expression tree containing an immediately invoked function assignment not being wrapped in parenthesis
2017-08-12 11:03:19 +02:00
jos
9666c16378
Fixed #846 : Issues in the functions map, forEach, and filter when used in the expression parser
2017-07-29 14:05:27 +02:00
jos
469e6bf3cf
Fixed #895 : added support for the dollar character $ in symbol names
2017-07-10 20:29:30 +02:00
Jos de Jong
69f3e882d7
Merge pull request #888 from ThomasBrierley/prototyped-scopes
...
Prototyped Scopes
2017-07-05 22:01:29 +02:00
jos
485cb88866
Use getSafeProperty in help
2017-06-30 14:27:28 +02:00
jos
142e200992
Added docs for set functions to the expression parser
2017-06-30 12:04:47 +02:00
Jos de Jong
000b748108
Merge pull request #889 from HarrySarson/single-quotes
...
Syntax error includes hint if single quotes are used for a string
2017-06-30 11:38:47 +02:00
jos
6bbff5f54f
Improved natural sorting for numeric types, matrix types, and objects
2017-06-30 11:16:42 +02:00
Harry Sarson
43ae05bbc5
remove " from end of error message
2017-06-29 23:55:44 +01:00
Harry Sarson
291b96d83e
Syntax error includes hint if single quotes are used for a string
2017-06-29 23:49:16 +01:00
Thomas Brierley
955c72bebf
Update isSafeProperty interface
2017-06-29 14:56:47 +01:00
jos
aaa609d046
Fixed wrong function name of map.transform.js
2017-06-26 19:12:53 +02:00
jos
0557e7ae1f
Back to compareNatural WIP (see #837 )
2017-06-25 21:02:59 +02:00
jos
08695ef1c7
Use strict unequal in xor
2017-06-24 20:38:25 +02:00
jos
3545d9000e
Fixed undefined Unit in SymbolNode
2017-06-24 15:14:01 +02:00
jos
af58fd2294
Decouple SymbolNode from Unit
2017-06-24 14:55:12 +02:00
jos
16b0d620a1
Removed redundant dependency on math
2017-06-24 13:43:21 +02:00
jos
151bc655d6
Implemented a first version of math.compareNatural
2017-06-18 21:13:31 +02:00
Nekomajin42
9678d1a067
Change escape-goat to native escape function
2017-06-06 12:06:58 +02:00
Nekomajin42
e7aa5b4ec9
fix the escaping errors
2017-06-01 16:02:20 +02:00
Nekomajin42
e18cca6153
Revert "Revert "Use escape goat""
...
This reverts commit f83c88237f02edf7595e375606c1a0eaaa6ce50c.
2017-06-01 08:36:04 +02:00
Nekomajin42
f83c88237f
Revert "Use escape goat"
...
This reverts commit 51e1b601b64d0bb782590e95c7a74bbb7fb179ff.
2017-06-01 08:35:47 +02:00
Nekomajin42
51e1b601b6
Use escape goat
2017-06-01 08:19:16 +02:00
Nekomajin42
7301b6fcf9
Implement toHTML() to Nodes
...
toHTML() method to each Node, and update in the docs
2017-05-21 15:47:43 +02:00
jos
f61bb6cf94
Fixed #856 : function subset not returning non-primitive scalars from Arrays correctly
2017-05-16 21:41:03 +02:00
jos
27660d8c00
Some more security measures
2017-05-05 21:08:23 +02:00