Commit cee38ad6 authored by John Wiegley's avatar John Wiegley
Browse files

(eshell-number-regexp): Now that number conversions only happen for

Lisp function calls, the number regexp should now match all integer
and floating point forms.
parent 36e81327
......@@ -88,7 +88,7 @@ Numeric form is tested using the regular expression
:type 'boolean
:group 'eshell-util)
(defcustom eshell-number-regexp "\\(0\\|-?[1-9][0-9]*\\(\\.[0-9]+\\)?\\)"
(defcustom eshell-number-regexp "-?\\([0-9]*\\.\\)?[0-9]+\\(e[-0-9.]+\\)?"
"*Regular expression used to match numeric arguments.
If `eshell-convert-numeric-arguments' is non-nil, and an argument
matches this regexp, it will be converted to a Lisp number, using the
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment