diff options
Diffstat (limited to 'app/helpers/git_helper.rb')
-rw-r--r-- | app/helpers/git_helper.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/helpers/git_helper.rb b/app/helpers/git_helper.rb new file mode 100644 index 00000000000..09684955233 --- /dev/null +++ b/app/helpers/git_helper.rb @@ -0,0 +1,5 @@ +module GitHelper + def strip_gpg_signature(text) + text.gsub(/-----BEGIN PGP SIGNATURE-----(.*)-----END PGP SIGNATURE-----/m, "") + end +end |