gitlab-ce/spec/support/helpers/markdown_helpers.rb

8 lines
138 B
Ruby

# frozen_string_literal: true
module MarkdownHelpers
def remove_sourcepos(html)
html.gsub(/\ ?data-sourcepos=".*?"/, '')
end
end