lib/tolk/sync.rb in tolk-3.2.1 vs lib/tolk/sync.rb in tolk-4.0.0

- old
+ new

@@ -95,10 +95,10 @@ return flat_hash unless ignored.any? ignored_escaped = ignored.map { |key| Regexp.escape(key) } - regexp = Regexp.new(/\A#{ignored_escaped.join('|')}/) + regexp = Regexp.new(/\A(#{ignored_escaped.join('|')})(:?\.|\Z)/) flat_hash.reject { |key, _| regexp === key } end end end