diff options
author | Javier Marín <contacto@ideatic.net> | 2022-01-05 11:53:06 +0300 |
---|---|---|
committer | Javier Marín <contacto@ideatic.net> | 2022-01-05 11:53:06 +0300 |
commit | 20f8cabf10ff594a2b6c9dc655d63578988d4d23 (patch) | |
tree | f77a01516557a8272eb126722b2eb34fe83a1c30 /src | |
parent | d1d27b494dececc4e96e608d0bb47fd948d7f959 (diff) |
fix: broken support for positive exponent numbers
Diffstat (limited to 'src')
-rw-r--r-- | src/NXP/Classes/Tokenizer.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/NXP/Classes/Tokenizer.php b/src/NXP/Classes/Tokenizer.php index f8056c3..77014b8 100644 --- a/src/NXP/Classes/Tokenizer.php +++ b/src/NXP/Classes/Tokenizer.php @@ -159,7 +159,7 @@ class Tokenizer } // could be in exponent, in which case negative should be added to the numberBuffer if ($this->numberBuffer && $this->numberBuffer[strlen($this->numberBuffer) - 1] == 'e') { - $this->numberBuffer .= '-'; + $this->numberBuffer .= $ch; continue 2; } } |