diff options
author | Alexander Kiryukhin <frei@neonxp.info> | 2013-09-06 16:39:10 +0400 |
---|---|---|
committer | Alexander Kiryukhin <frei@neonxp.info> | 2013-09-06 16:39:10 +0400 |
commit | a0f031dc2355b91a89c36e9b01c7e02fac686bfc (patch) | |
tree | 33889330da03da02b9832baf7714581880ed876f | |
parent | 10c04a966fc0099a07a4ed2bc80e6de45cac499f (diff) | |
parent | 31f4bc044d8de237e70116ed73e8bfea6145ae92 (diff) |
Merge pull request #6 from AntonStoeckl/master
Make TokenNumber aware of scientific notation
-rw-r--r-- | src/NXP/Classes/Token/TokenNumber.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/NXP/Classes/Token/TokenNumber.php b/src/NXP/Classes/Token/TokenNumber.php index 763ca04..a7eac57 100644 --- a/src/NXP/Classes/Token/TokenNumber.php +++ b/src/NXP/Classes/Token/TokenNumber.php @@ -20,6 +20,6 @@ class TokenNumber extends AbstractContainerToken */ public static function getRegex() { - return '\-?\d+\.?\d*'; + return '\-?\d+\.?\d*(E-?\d+)?'; } } |