We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bc8c115 + 02b2f41 commit 4d0885aCopy full SHA for 4d0885a
src/editors/number.js
@@ -1,6 +1,6 @@
1
JSONEditor.defaults.editors.number = JSONEditor.defaults.editors.string.extend({
2
sanitize: function(value) {
3
- return (value+"").replace(/[^0-9\.\-]/g,'');
+ return (value+"").replace(/[^0-9\.\-eE]/g,'');
4
},
5
getNumColumns: function() {
6
return 2;
0 commit comments