This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new a0497d4  bootstrap more URLs
a0497d4 is described below

commit a0497d4563e4be58ee01a2fc44873425ea6a6b3d
Author: Sam Ruby <[email protected]>
AuthorDate: Tue May 1 08:36:31 2018 -0400

    bootstrap more URLs
---
 www/board/agenda/views/sw.js.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/board/agenda/views/sw.js.rb b/www/board/agenda/views/sw.js.rb
index 3af0094..c482559 100644
--- a/www/board/agenda/views/sw.js.rb
+++ b/www/board/agenda/views/sw.js.rb
@@ -170,7 +170,7 @@ self.addEventListener :fetch do |event|
     if url.end_with? '/bootstrap.html'
       return
 
-    elsif url =~ %r{^\d\d\d\d-\d\d-\d\d/[-\w]*$}
+    elsif url =~ %r{^\d\d\d\d-\d\d-\d\d/(\w+\/)?[-\w]*$}
       # substitute bootstrap.html for html pages
       date =  url.split('/')[0]
       bootstrap_url = "#{scope}#{date}/bootstrap.html"

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to