Skip to content

Commit c8c1b5e

Browse files
committed
Code style consistency
1 parent ec7b4ca commit c8c1b5e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/onelogin/ruby-saml/utils.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def self.format_cert(cert)
3232
formatted_cert.join("\n")
3333
else
3434
cert = cert.gsub(/\-{5}\s?(BEGIN|END) CERTIFICATE\s?\-{5}/, "")
35-
cert = cert.gsub(/[\r]/, "")
35+
cert = cert.gsub(/\r/, "")
3636
cert = cert.gsub(/\n/, "")
3737
cert = cert.gsub(/\s/, "")
3838
cert = cert.scan(/.{1,64}/)
@@ -53,9 +53,9 @@ def self.format_private_key(key)
5353
# is this an rsa key?
5454
rsa_key = key.match("RSA PRIVATE KEY")
5555
key = key.gsub(/\-{5}\s?(BEGIN|END)( RSA)? PRIVATE KEY\s?\-{5}/, "")
56-
key = key.gsub(/[\n]/, "")
57-
key = key.gsub(/[\r]/, "")
58-
key = key.gsub(/[\s]/, "")
56+
key = key.gsub(/\n/, "")
57+
key = key.gsub(/\r/, "")
58+
key = key.gsub(/\s/, "")
5959
key = key.scan(/.{1,64}/)
6060
key = key.join("\n")
6161
key_label = rsa_key ? "RSA PRIVATE KEY" : "PRIVATE KEY"

0 commit comments

Comments
 (0)