exe/postpost in postpost-0.2.1 vs exe/postpost in postpost-0.2.2

- old
+ new

@@ -1,13 +1,15 @@ #!/usr/bin/env ruby # frozen_string_literal: true require 'postpost' -text = Clipboard.paste counter = '000' Clipboard.copy( - text.gsub(%r{\n\n<hr />\n\n}, "\n\n").gsub(/\n\n/) { + Clipboard + .paste + .gsub(%r{\n\n<hr[^>]*/>\n\n}, "\n\n") + .gsub(/\n\n/) do counter = counter.next "\n\n<hr id=\"story_#{counter}\" />\n\n" - } + end )