diff options
Diffstat (limited to 'app/helpers/git_helper.rb')
-rw-r--r-- | app/helpers/git_helper.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/helpers/git_helper.rb b/app/helpers/git_helper.rb index 5edc6dcf454..03b71522b84 100644 --- a/app/helpers/git_helper.rb +++ b/app/helpers/git_helper.rb @@ -1,8 +1,10 @@ # frozen_string_literal: true module GitHelper - def strip_gpg_signature(text) + def strip_signature(text) text.gsub(/-----BEGIN PGP SIGNATURE-----(.*)-----END PGP SIGNATURE-----/m, "") + text.gsub(/-----BEGIN PGP MESSAGE-----(.*)-----END PGP MESSAGE-----/m, "") + text.gsub(/-----BEGIN SIGNED MESSAGE-----(.*)-----END SIGNED MESSAGE-----/m, "") end def short_sha(text) |