aboutsummaryrefslogtreecommitdiffhomepage
path: root/js
diff options
context:
space:
mode:
authorHakim El Hattab2018-01-22 10:53:44 +0100
committerGitHub2018-01-22 10:53:44 +0100
commite3205a55beb640f376b8add0fbc406f0eb065248 (patch)
treeaed9d115035171d7e84fee5e5c2f3a769eeefd15 /js
parent40e55447760475f288951aaa1d8eb7b93d5b8850 (diff)
parent6816a0205e329a2564d0a198cf89285064e3bc24 (diff)
Merge pull request #2078 from bnjmnt4n/data-background
Allow `data-background` images to load even if there is whitespace at…
Diffstat (limited to 'js')
-rw-r--r--js/reveal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 9d5fb26..0120f31 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -916,7 +916,7 @@
if( data.background ) {
// Auto-wrap image urls in url(...)
- if( /^(http|file|\/\/)/gi.test( data.background ) || /\.(svg|png|jpg|jpeg|gif|bmp)([?#]|$)/gi.test( data.background ) ) {
+ if( /^(http|file|\/\/)/gi.test( data.background ) || /\.(svg|png|jpg|jpeg|gif|bmp)([?#\s]|$)/gi.test( data.background ) ) {
slide.setAttribute( 'data-background-image', data.background );
}
else {