lib/galago/router/path.rb in galago-router-0.0.2 vs lib/galago/router/path.rb in galago-router-0.1.0

- old
+ new

@@ -32,10 +32,10 @@ @regex_path ||= convert_path_to_regex(@path) end def convert_path_to_regex(path) regexp = path.to_s.gsub(/\:\w+/, '([\w-]+)') - Regexp.new("^#{regexp}$") + /\A#{regexp}$/ end def identify_params_in_path(path) if match = regex.match(path) named_parameters.zip(match.captures)