From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8DYYKj8zFWKPKgAAgWs5BA (envelope-from ) for ; Tue, 22 Feb 2022 20:02:23 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id cCxLJz8zFWL+bwAA9RJhRA (envelope-from ) for ; Tue, 22 Feb 2022 20:02:23 +0100 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 494D1246E7 for ; Tue, 22 Feb 2022 20:02:23 +0100 (CET) Received: from localhost ([::1]:40618 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nMaQY-0001Tk-4N for larch@yhetil.org; Tue, 22 Feb 2022 14:02:22 -0500 Received: from eggs.gnu.org ([209.51.188.92]:37862) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nMaPn-0001Tb-Eq for emacs-orgmode@gnu.org; Tue, 22 Feb 2022 14:01:35 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:63219) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nMaPl-0001eU-BL for emacs-orgmode@gnu.org; Tue, 22 Feb 2022 14:01:34 -0500 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by mail.gandi.net (Postfix) with ESMTPSA id 47B8540003; Tue, 22 Feb 2022 19:01:30 +0000 (UTC) From: Nicolas Goaziou To: David =?utf-8?Q?Luke=C5=A1?= Subject: Re: More robust CSL-JSON date parsing in oc-basic References: Mail-Followup-To: David =?utf-8?Q?Luke=C5=A1?= , emacs-orgmode@gnu.org Date: Tue, 22 Feb 2022 20:01:27 +0100 In-Reply-To: ("David =?utf-8?Q?Luke=C5=A1=22's?= message of "Tue, 22 Feb 2022 00:48:27 +0100") Message-ID: <87ee3u3euw.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=217.70.183.194; envelope-from=mail@nicolasgoaziou.fr; helo=relay2-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=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: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1645556543; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=WjiVphs4Wk2TZC8OePqfUHIxykmd7gkRMT67lW/U/Kw=; b=K5ZYh8sWwSLGMW40aVgJB714KuOCSWaCzva86WY7h8Y2I8yTImAUGsQcrVW/Ry/Rmn2vp1 Kk377Wo5SzGhiFjkoyatB8IOtF04vAVgrY5ks3VCq/X5Gld2WFDEQx6ov82Mm9ll+RdpfQ IxcBWr9vWNGwTc/eOPMCgbx5kRsKn+nGdW/pqlZOc9Iv77mUAQlQNVzGAtgYesm3kNqnoX jQnSN5ontv/N47ninafY+IwbllC82execW2fS13I19foCyJ2/htKEDxpgCBMs2XyT1q/jY tppldJH2opbv2BwIw/HdZTPFYq1OlwIwl198eiQIID4mKPtipt/onUtBk8Ynfw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645556543; a=rsa-sha256; cv=none; b=qDmC7NQVNmty4TK1uHnK/SjQKGAFGZ6HKunAdmsLXAufw5Dq2aMAP75ZC6c1d2XFhP2ccO NO5OPIuU3Hk24JlK3scAJ0JaNrbiYxn/4xCGpDhjAmaeXWvJxNGmpUfBNkUbmBlqrQNFuH J+GxBVo88VM+N1vO/00muBi0ewWyjof7sMe37C1Dqu37nE3VYbZV7rz3Og9xLJ3RkGsOY+ m/00hywJNIjFhJilEiQm69cEbzu7ulTglnbWFC1N+0v85KELI41kkeEtx5HsiY59sVZWk/ lNqnxitlanLrZwNggm1f5R9yZj+y4VeWO6xnCpJOAMiVu3m6zzY+jlZkSSgg9g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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-Migadu-Spam-Score: -3.23 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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-Migadu-Queue-Id: 494D1246E7 X-Spam-Score: -3.23 X-Migadu-Scanner: scn1.migadu.com X-TUID: nvno+KWTDb34 Hello, David Luke=C5=A1 writes: > - (car (split-string date "-"))) > + (replace-regexp-in-string > ".*?\\([0-9]\\{4\\}\\).*" "\\1" date)) > + [...] > Let me know which of these changes -- if any -- seem acceptable, and > whether they qualify as tinychange, and I'll happily submit a proper > patch :) All changes sound good. Please use `rx' for the regexp matching the year. This is a tinychange. I think this can be applied to the bugfix branch. Thanks! Regards, --=20 Nicolas Goaziou