Sha256: 504c75b5b57ab81849f9ffbde60cadf6cc514bc6dfd23df01d9e756740a80a10
Contents?: true
Size: 274 Bytes
Versions: 19
Compression:
Stored size: 274 Bytes
Contents
# frozen_string_literal: true class String def self.clean_certificate(str) CGI.unescape(str).gsub(/(\n|-----(BEGIN|END) CERTIFICATE-----)/, '').strip end def clean_certificate clean_certificate(self) end alias_method :clean_cert, :clean_certificate end
Version data entries
19 entries across 19 versions & 1 rubygems