lib/dry/schema/messages/template.rb in dry-schema-1.0.2 vs lib/dry/schema/messages/template.rb in dry-schema-1.0.3
- old
+ new
@@ -12,10 +12,10 @@
#
# @api private
class Template
include Dry::Equalizer(:text)
- TOKEN_REGEXP = /%{([\w\d]*)}/
+ TOKEN_REGEXP = /%{(\w*)}/
# !@attribute [r] text
# @return [String]
attr_reader :text