lib/scrivito/routing_extensions.rb in scrivito_sdk-1.1.0 vs lib/scrivito/routing_extensions.rb in scrivito_sdk-1.1.1
- old
+ new
@@ -62,10 +62,10 @@
via: via,
format: format,
as: route.helper_name,
}
- options[:constraints] = {id: /[a-z0-9]{16}/} if route_name == :slug_id
+ options[:constraints] = {id: /[a-f0-9]{16}/} if route_name == :slug_id
begin
match(path, options)
rescue ArgumentError => error
if error.message.include?(route.helper_name)