From df0c8a3bc44286c06b3306503a95382805651e2c Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Fri, 29 Mar 2013 08:48:51 -0600 Subject: [PATCH] don't interpret single "-" as a number * lisp/ob-core.el (org-babel-number-p): Don't interpret single "-" as a number. --- lisp/ob-core.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/ob-core.el b/lisp/ob-core.el index a63f77e9f..4ef210038 100644 --- a/lisp/ob-core.el +++ b/lisp/ob-core.el @@ -2521,6 +2521,7 @@ appropriate." (defun org-babel-number-p (string) "If STRING represents a number return its value." (if (and (string-match "^-?[0-9]*\\.?[0-9]*$" string) + (string-match "[0-9]+" string) (= (length (substring string (match-beginning 0) (match-end 0))) (length string)))