aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2017-09-07 10:33:44 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2017-09-07 10:33:44 +0200
commit56504b50a9a98eedb687ca2ace01ca17fb2682df (patch)
tree84500d82e689c8046ebef4af9bb1c2bcea83a54e
parentbfd431a0c41c5d7954db6c6af5fb22d42e0b20e5 (diff)
downloadfosdem-2018-presentation-56504b50a9a98eedb687ca2ace01ca17fb2682df.tar
fosdem-2018-presentation-56504b50a9a98eedb687ca2ace01ca17fb2682df.tar.gz
support negative values in query config overrides
-rw-r--r--js/reveal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 4992a01..88bf4ac 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -1292,7 +1292,7 @@
if( value === 'null' ) return null;
else if( value === 'true' ) return true;
else if( value === 'false' ) return false;
- else if( value.match( /^[\d\.]+$/ ) ) return parseFloat( value );
+ else if( value.match( /^-?[\d\.]+$/ ) ) return parseFloat( value );
}
return value;