From 0925fddc80646b9411b00e7f601aa3d9c48d66ec Mon Sep 17 00:00:00 2001 From: opak Date: Tue, 1 Jun 2021 10:11:04 +0200 Subject: [PATCH] [ruby/psych] Update lib/psych/scalar_scanner.rb https://github.com/ruby/psych/commit/64cc239557 Co-authored-by: Olle Jonsson --- ext/psych/lib/psych/scalar_scanner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/psych/lib/psych/scalar_scanner.rb b/ext/psych/lib/psych/scalar_scanner.rb index 383a8acc1b..5fafaf30b3 100644 --- a/ext/psych/lib/psych/scalar_scanner.rb +++ b/ext/psych/lib/psych/scalar_scanner.rb @@ -15,7 +15,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