lib/sugar-high/file_ext.rb in sugar-high-0.6.3 vs lib/sugar-high/file_ext.rb in sugar-high-0.7.0
- old
+ new
@@ -22,10 +22,10 @@
index = content.match(regexp).offset_before
content = content[0..index]
rescue
raise ArgumentError, ":before option must be a string or regular expression, was : #{options[:before]}"
end
- end
+ end
if options[:after]
begin
regexp = options[:after].to_regexp
index = content.match(regexp).offset_after