From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on starla X-Spam-Level: X-Spam-Status: No, score=0.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [94.130.110.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 6E2BA1F4B8 for ; Thu, 8 Feb 2024 09:19:23 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; secure) header.d=ml.ruby-lang.org header.i=@ml.ruby-lang.org header.a=rsa-sha256 header.s=mail header.b=JIfrz3AM; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=Hl8lXex7; dkim-atps=neutral Received: from nue.mailmanlists.eu (localhost [127.0.0.1]) by nue.mailmanlists.eu (Postfix) with ESMTP id AA2048278D; Thu, 8 Feb 2024 09:19:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1707383955; bh=29meT6gUsg369I8MmrjpP9YC2lq4ogxwM6W2Gt/wQ+Q=; h=Date:References:To:Reply-To:Subject:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From:Cc:From; b=JIfrz3AM9BcOhlquViVxW2iEfWOjxYrEdR6NLp8xAXg3JB4VCIdoqOsS9WsLmbJZN EjVVyBwzCfM7jWh10GzU8KSdH3VSxA9009eIrbvn7Blo3ePvEr04kI0hkUVoCeeaW2 08Xqqx6ZrJUA8G4bw8lXsS6tdQ8D/fv88T3xT7F8= Received: from s.csnrwnwx.outbound-mail.sendgrid.net (s.csnrwnwx.outbound-mail.sendgrid.net [198.37.146.154]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 2B6AA8264C for ; Thu, 8 Feb 2024 09:19:10 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; dkim=pass (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=Hl8lXex7; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ruby-lang.org; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to:cc:content-type:from:subject:to; s=s1; bh=078RslY8Mi1XcpXobxmvQ1z4P9HCRFWptHuz6aF9wjw=; b=Hl8lXex796x1mnZzCGrjEz1eQVJPcMcF9581/+J/PyLy47JgHB65dwRGeuiIYkh4Yhnd ITNbtXBUI3ihJV8j9/hfYnBIlX7m4v8ISXePfYUtWJbAne1EPYIzw/hqJ4zZY5qYrsG34R VR4IMcO0+KE/8F69EMkLy1tbDi2Q12aD0AZbnpMMhEgq9tP6Byfw+7AkFQHk/xkA64SYPH 9H0SdhXjXBCHyWK8hhPTJmayZId2kITe0L2WgCuOylpGWjO85q6/yUEVffL0C5eJ1vKSRz l28517mCzhYLx7Awtgs1MnOWyB3HQkx1dTIJ6CYQi654RJLENxzF3c9iTioq5pAg== Received: by filterdrecv-5bbdbb56cd-zjghc with SMTP id filterdrecv-5bbdbb56cd-zjghc-1-65C49C8C-1C 2024-02-08 09:19:08.920459535 +0000 UTC m=+2404931.495767224 Received: from herokuapp.com (unknown) by geopod-ismtpd-3 (SG) with ESMTP id 8NpPzhFWSxazRw9mbbzgvQ for ; Thu, 08 Feb 2024 09:19:08.904 +0000 (UTC) Date: Thu, 08 Feb 2024 09:19:08 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 20246 X-Redmine-Issue-Author: bestwebua X-Redmine-Sender: bestwebua X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-Redmine-MailingListIntegration-Message-Ids: 93183 X-SG-EID: =?us-ascii?Q?EhFCfLoICniHQnlKAe=2FThhN82gf2M+aaWumFNw57yBgN58p9Je+V5gI7CZ9Vr7?= =?us-ascii?Q?LJs+oqcRTcHjnxzBnlHNzf87PRVsG+YjbO9047h?= =?us-ascii?Q?PzvQ88aGqoC27TeNxYhdU4hXX8R05Bm1bl7c7Kf?= =?us-ascii?Q?RlWS9QHz2BHyFu9zJHLTazIjjhKbD96hNcmPIzx?= =?us-ascii?Q?w3tmoh+l9lwCI=2FXredvkwIF2CB+y2eviJse7Mon?= =?us-ascii?Q?TEH0H3mqXthUtcCHO2RYyTEqINUNVqpfYwntcmM?= =?us-ascii?Q?a=2FFx2h+7q7eMIvZILbz0piCIXt1jcKxyYM4fRFX?= =?us-ascii?Q?ai4=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== Message-ID-Hash: NIFCS2KERHPZ3EXOQLY2TK2PSDXA77A7 X-Message-ID-Hash: NIFCS2KERHPZ3EXOQLY2TK2PSDXA77A7 X-MailFrom: bounces+313651-b711-ruby-core=ml.ruby-lang.org@em5188.ruby-lang.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:116627] [Ruby master Bug#20246] Unexpected behavior for Regexp in Subexpression Calls on Ruby 3.3.0 List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "bestwebua (Vladislav Trotsenko) via ruby-core" Cc: "bestwebua (Vladislav Trotsenko)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20246 has been reported by bestwebua (Vladislav Trotsenko). ---------------------------------------- Bug #20246: Unexpected behavior for Regexp in Subexpression Calls on Ruby 3.3.0 https://bugs.ruby-lang.org/issues/20246 * Author: bestwebua (Vladislav Trotsenko) * Status: Open * Priority: Normal * ruby -v: ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [arm64-darwin22] * Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- Hello! A few days ago, after migration on 3.3.0 I have faced with issue inside subexpression calls. An expected result on Ruby up to 3.3.0: ```ruby '1.2.3'[/(\d+)(\.\g<1>){2}/] # => "1.2.3" ``` An actual result on Ruby 3.3.0: ```ruby '1.2.3'[/(\d+)(\.\g<1>){2}/] # => nil ``` -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/