diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2017-09-07 10:33:44 +0200 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2017-09-07 10:33:44 +0200 |
commit | 56504b50a9a98eedb687ca2ace01ca17fb2682df (patch) | |
tree | 84500d82e689c8046ebef4af9bb1c2bcea83a54e /js | |
parent | bfd431a0c41c5d7954db6c6af5fb22d42e0b20e5 (diff) | |
download | fosdem-2018-presentation-56504b50a9a98eedb687ca2ace01ca17fb2682df.tar fosdem-2018-presentation-56504b50a9a98eedb687ca2ace01ca17fb2682df.tar.gz |
support negative values in query config overrides
Diffstat (limited to 'js')
-rw-r--r-- | js/reveal.js | 2 |
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; |