aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoricetooth <icetooth333@gmail.com>2013-10-26 10:17:38 -0400
committericetooth <icetooth333@gmail.com>2013-10-26 10:17:38 -0400
commit2403c746bb3387c0716893e01970a25aad68d20d (patch)
tree6a5c9ec69c2995efe16af07339713babd96897fe
parent350550a5ccfacd19f512bca2ded186e143ea9579 (diff)
fixed float read performance in _scanString
-rw-r--r--src/library.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js
index 875d8bab..2b183ea1 100644
--- a/src/library.js
+++ b/src/library.js
@@ -1745,7 +1745,7 @@ LibraryManager.library = {
type == 'F' || type == 'E' || type == 'G') {
var last = 0;
next = get();
- while (next > 0) {
+ while ( next > 0 && (!(next in __scanString.whiteSpace)) ) {
buffer.push(String.fromCharCode(next));
if (__isFloat(buffer.join(''))) {
last = buffer.length;