Welcome to mirror list, hosted at ThFree Co, Russian Federation.

markdown_helpers.rb « helpers « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9a25238465a4076eb9d56ac356401983984ae4a6 (plain)
1
2
3
4
5
6
7
# frozen_string_literal: true

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