From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id GKwWL+cuSGQ6aAEASxT56A (envelope-from ) for ; Tue, 25 Apr 2023 21:49:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id KGn+LucuSGTIygAA9RJhRA (envelope-from ) for ; Tue, 25 Apr 2023 21:49:59 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2C3D0F4D6 for ; Tue, 25 Apr 2023 21:49:59 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1prO30-0002ty-MV; Tue, 25 Apr 2023 15:09:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1prO2y-0002ta-0E for emacs-orgmode@gnu.org; Tue, 25 Apr 2023 15:09:52 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1prO2v-0006kT-L8 for emacs-orgmode@gnu.org; Tue, 25 Apr 2023 15:09:51 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 5BC512402EC for ; Tue, 25 Apr 2023 21:09:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1682449787; bh=ZOEJH72phs5TJEi1Z7fQ0ppd+I78cq5fN0dsy+Yf2rA=; h=From:To:Cc:Subject:Date:From; b=FNebcjyPCTppbw2CIz3urdnPvSceaEsI57W8eZogQouMnS3PV3VkBJP54mNSP/q7b 3YhAYj5Dr+Uyta18NwuKmRjT1aV5IIpVxMBLCRXFmQHOY3ECRxAcq0uNQeGGlklRD9 lghyI+uGKl0xXCxCJRHT3J02Y/vNaCobsuAKiO5v5lhH7o7LaN1f8TxAUMLcbr3xLj 0lhzsr+EIC/5IXNKJY9smNLqpWcTL1WVGT3l5fygocye3KoPxuP708wKPq6dJykFQO ap6zMq2m3UpNzOEtgOjPDw5dahXTcWC/9eD1Z4jeoyqCkM/sLn290g6I3iJc9Jlcqm 83Y2xfGg79BFw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Q5WlZ6L2fz9rxB; Tue, 25 Apr 2023 21:09:46 +0200 (CEST) From: Ihor Radchenko To: Bastien Guerry Cc: Tommy Kelly , emacs-orgmode@gnu.org Subject: Re: [BUG] Null character in block/drawer regexps (but not in org-element parser) In-Reply-To: <87pmds19li.fsf@gnu.org> References: <875yfk9vlv.fsf@localhost> <87pmds19li.fsf@gnu.org> Date: Tue, 25 Apr 2023 19:12:41 +0000 Message-ID: <87a5yvpyhi.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682452199; a=rsa-sha256; cv=none; b=jYzDD8GP64orrXYigAl4ry/66ZjmULuyckENH6AN1wMsetw2frmbvVRRdBweMOfyrEnfmy 1XtijZ2Vs+qjpPlo9cNz4rQAiFpUYMvA+oUM3X/ywTtk+dCm3tCF0XUa1LWfl3HgaW16JJ 314uSawahoXn2vvW10UYbFkRNtz2zwUFV0eQARxNOlB0fbPGFvcRIci3C8y0MU8jeaabHu TDeqAA3OEktyFYNWUHF5eajIpdLo+vJbMsgfz1iV3Uqcqj9uLF+qcCQreMh4Rsi48H9bfv dwkxd+IDEoym8c8k3Mhu+3mnS5Wl2RKN6N6bhMmQZmMAWpKN+4517Noia+kkJQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=FNebcjyP; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682452199; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Q88ZRcdYXAarVHiqyDWj4oINjYH4fHWNeacs2RjA52E=; b=JiCHL9VmIgNVgioHxEmMqqjTJQ089T+hQ/YOjcFV437cCWIKcJYhQf9Q8b47K6UXNGyCCA H1nlK6O9jPWy5D8SFHhkL8OS2A0c2YxEKOUI6Q2Sf1zdItqJTpN4eRwRlzUvMXOGfnZLUe f4FGm2OFyZnSrhwb/CmjiCCZ4JUxZw/yPSDx4QfM+5UVtOS8gM3VbY/8Clwz3of5ztG2YZ vq8Hib3QtxRiPfqRe5B26jEUF/4R9Thbmdksv1It8OTzwbbDBDcEWIzzzHhOtYSnM1gfTX NBcdEJIXgT4i+ok0AsgKkqMUTcym7+ktSgb403ox1qMPCZK169UdlneY4n7Now== X-Migadu-Spam-Score: -7.50 X-Spam-Score: -7.50 X-Migadu-Queue-Id: 2C3D0F4D6 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=FNebcjyP; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-TUID: lEq7K5jJYXTD Bastien Guerry writes: > Ihor Radchenko writes: > >> So, we should probably remove zero-width shenanigans from the code. > > +1. Upon further look, it appears to me that [^\000] was simply used to match "anything, including newline" in most places. Fixed, on main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=eaf274909 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at