git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] userdiff: add support for Fountain documents

From
Zoë Blade <zoe@bytenoise.co.uk>
Date
Jul 21, 2015, 13:23 UTC
Message-ID
<F67D2953-FCA5-43F8-A370-13C77B14553B@bytenoise.co.uk>
In-Reply-To
<xmqqegk2y1dm.fsf@gitster.dls.corp.google.com>
On 20 Jul 2015, at 22:17, Junio C Hamano <gitster@pobox.com> wrote:
>> +PATTERNS("fountain", "^((\\.|(([Ii][Nn][Tt]|[Ee][Ss][Tt]|[Ee][Xx][Tt])?\\.?|[Ii]([Nn][Tt])?\\.?/[Ee]([Xx][Tt])?\\.?) ).+)$",
>> +	 "[^ \t-]+"),
> 
> Wouldn't IPATTERN() be a better choice here?
Good point, thank you!  Much better:
IPATTERN("fountain", "^((\\.|((int|est|ext)?\\.?|i(nt)?\\.?/e(xt)?\\.?) ).+)$", "[^ \t-]+"),
It looks like some of the others might benefit from being case insensitive too, but I'm not sure, and at any rate it would warrant a separate patch.
I'll send another revision next... :)

Thanks, Zoë.

Previous: Junio C Hamano
Message 3 of 3 in “userdiff: add support for Fountain documents”
  1. userdiff: add support for Fountain documentsZoë Blade, Jul 19, 2015
  2. Junio C HamanoJul 20, 2015
  3. Zoë BladeJul 21, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.