Use start and end of string rather than line matching in regexes.

This commit is contained in:
Dylan Thacker-Smith
2014-02-27 10:07:04 -05:00
parent 3efa8e8762
commit 503d924274
10 changed files with 21 additions and 21 deletions

View File

@@ -13,7 +13,7 @@ class LiquidServlet < WEBrick::HTTPServlet::AbstractServlet
def handle(type, req, res)
@request, @response = req, res
@request.path_info =~ /(\w+)$/
@request.path_info =~ /(\w+)\z/
@action = $1 || 'index'
@assigns = send(@action) if respond_to?(@action)