[Nitro] Spark Question
James Britt
james_b at neurogami.com
Sat Oct 15 16:49:17 EDT 2005
George Moschovitis wrote:
> Perhaps there is a problem with the '.' character. I 'll investigate this.
In lib/nitro/adapter.rb there is this code at line 100:
def handle(req, res)
unless handle_file(req, res)
path = req.request_uri.path
unless path =~ /\./
begin
I changed the regexp to /\.html/, and could then have wiki page links
that included a file extension.
What might be slick is some way to configure this expression, though I
have no suggestions or code to offer on this. (Nor do I understand
quite why this rexp is there.)
James
--
http://www.ruby-doc.org - The Ruby Documentation Site
http://www.rubyxml.com - News, Articles, and Listings for Ruby & XML
http://www.rubystuff.com - The Ruby Store for Ruby Stuff
http://www.jamesbritt.com - Playing with Better Toys
More information about the Nitro-general
mailing list