summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoropak <opak.alexandr@gmail.com>2021-06-01 10:11:04 +0200
committerGitHub <noreply@github.com>2021-06-01 10:11:04 +0200
commit64cc239557d83058cde9af686900270fc173e105 (patch)
tree75e835ae9ed4c6cd79dced763e22ad3ef33a7885
parent8f71222bf3c73f910da467e75d4c7231005bc8b0 (diff)
downloadpsych-64cc239557d83058cde9af686900270fc173e105.tar.gz
Update lib/psych/scalar_scanner.rb
Co-authored-by: Olle Jonsson <olle.jonsson@gmail.com>
-rw-r--r--lib/psych/scalar_scanner.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/psych/scalar_scanner.rb b/lib/psych/scalar_scanner.rb
index f9805a4..37e9313 100644
--- a/lib/psych/scalar_scanner.rb
+++ b/lib/psych/scalar_scanner.rb
@@ -16,7 +16,7 @@ module Psych
# Taken from http://yaml.org/type/int.html
INTEGER = /^(?:[-+]?0b[0-1_,]+ (?# base 2)
|[-+]?0[0-7_,]+ (?# base 8)
- |[-+]?(?:0|[1-9]([0-9]|,[0-9]|_[0-9])*) (?# base 10)
+ |[-+]?(?:0|[1-9](?:[0-9]|,[0-9]|_[0-9])*) (?# base 10)
|[-+]?0x[0-9a-fA-F_,]+ (?# base 16))$/x
attr_reader :class_loader