gitlab-org--gitlab-foss/app/helpers/git_helper.rb
Dmitriy Zaporozhets f9aead9f6e
Hide gpg signature on tags page from tag message
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-11-18 18:00:38 +02:00

5 lines
142 B
Ruby

module GitHelper
def strip_gpg_signature(text)
text.gsub(/-----BEGIN PGP SIGNATURE-----(.*)-----END PGP SIGNATURE-----/m, "")
end
end