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

- old
+ new

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