You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2018/05/16 16:46:59 UTC

[whimsy] 01/02: enable pages with non-word characters in the title to be found

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

commit b5470fb14526dfc03d31040a3cf04d4a86fa1068
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Wed May 16 12:44:50 2018 -0400

    enable pages with non-word characters in the title to be found
---
 www/board/agenda/views/models/agenda.js.rb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/www/board/agenda/views/models/agenda.js.rb b/www/board/agenda/views/models/agenda.js.rb
index 7bcccb5..9b9a1f4 100644
--- a/www/board/agenda/views/models/agenda.js.rb
+++ b/www/board/agenda/views/models/agenda.js.rb
@@ -130,6 +130,7 @@ class Agenda
   # find an agenda item by path name
   def self.find(path)
     result = nil
+    path = path.gsub(/\W+/, '-')
     @@index.each do |item|
       result = item if item.href == path
     end

-- 
To stop receiving notification emails like this one, please contact
rubys@apache.org.