Files
gitlab-foss/spec/support/helpers/markdown_helpers.rb
2023-06-05 21:09:04 +00:00

8 lines
138 B
Ruby

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