lib/tr8n/tokens/transform_token.rb in tr8n-3.1.1 vs lib/tr8n/tokens/transform_token.rb in tr8n-3.1.2

- old
+ new

@@ -38,10 +38,10 @@ module Tr8n module Tokens class TransformToken < Tr8n::Token def self.expression - /(\{[^_][\w]+(:[\w]+)?(::[\w]+)?\s*\|\|?[^{^}]+\})/ + /(\{[^_:|][\w]*(:[\w]+)?(::[\w]+)?\s*\|\|?[^{^}]+\})/ end def name @name ||= declared_name.split('|').first.split(':').first.strip end \ No newline at end of file