Scorched v0.25 Release Notes
-
- Added symbol matchers, which are basically just named regex. Only two symbol matchers included by default,
:numeric
and:alpha_numeric
. It's intended that users add their own as per their applications requirements. E.g.symbol_matchers[:article_id] = /[a-f][0-9]{4}/
. A symbol matcher can optionally take a two-element array, where the first element is the regex, and the second is a proc for the sake of coercing the matched value into the desired form, such as an integer. - 🔄 Changed Rack::Logger to Rack::CommonLogger.
- Added symbol matchers, which are basically just named regex. Only two symbol matchers included by default,