Fixed regular expression to pick up S5 theme.

This commit is contained in:
Jason Blevins 2007-09-13 20:41:39 -04:00
parent b8911bc388
commit 61b7168d7a

View file

@ -293,7 +293,7 @@ class WikiController < ApplicationController
end
def s5
if @page.revisions.last =~ /^slide_theme:\s*(.+)$/
if @page.revisions.last.content =~ /^slide_theme:\s*([\w\d]+)/
@s5_theme = $1
else
@s5_theme = "default"