We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d49bf9 commit ac3ee68Copy full SHA for ac3ee68
lib/tzinfo/ruby_data_source.rb
@@ -38,7 +38,7 @@ def initialize
38
# Raises InvalidTimezoneIdentifier if the timezone is not found or the
39
# identifier is invalid.
40
def load_timezone_info(identifier)
41
- raise InvalidTimezoneIdentifier, 'Invalid identifier' if identifier !~ /\A[A-Za-z0-9\+\-_]+(\/[A-Za-z0-9\+\-_]+)*\z/
+ raise InvalidTimezoneIdentifier, 'Invalid identifier' if identifier !~ /\A[A-Za-z0-9+\-_]+(\/[A-Za-z0-9+\-_]+)*\z/
42
43
identifier = identifier.gsub(/-/, '__m__').gsub(/\+/, '__p__')
44
0 commit comments