Skip to content

Commit 3879a5e

Browse files
committed
Adjust regular expression for base64_encoded? to avoid 'character class has duplicated range' warning
1 parent 4289263 commit 3879a5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ruby_saml/xml/decoder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def base64_encode(string)
6161
# @param string [String] string to check the encoding of
6262
# @return [true, false] whether or not the string is base64 encoded
6363
def base64_encoded?(string)
64-
string.gsub(/[\s\r\n]|\\r|\\n/, '').match?(BASE64_FORMAT)
64+
string.gsub(/\s|\\r|\\n/, '').match?(BASE64_FORMAT)
6565
end
6666

6767
# Attempt inflating a string, if it fails, return the original string.

0 commit comments

Comments
 (0)