Merge pull request #2255 from xexyl/author_handle_re

Fix regexp in faq.md
This commit is contained in:
Landon Curt Noll authored and GitHub committed 2024-03-16 14:21:22 -07:00
commit 3f8da03700
2 files changed
+11 -9

No files matched your search

+6 -5
View File
@@ -2319,10 +2319,11 @@ form:</p>
<p>See <a href="#author_json">FAQ 6.6</a> for information about the <p>See <a href="#author_json">FAQ 6.6</a> for information about the
contents of these JSON file and how they are used.</p> contents of these JSON file and how they are used.</p>
<p>Because the <code>author_handle</code> is used to form a JSON <p>Because the <code>author_handle</code> is used to form a JSON
filename, the string must be POSIX safe string. Furthermore, the filename, the string must be POSIX safe string plus the use of
<code>author_handle</code> must be an ASCII string that matches this <code>+</code> (for technical reasons beyond this answer). In
regexp:</p> particular, the <code>author_handle</code> must be an ASCII string that
<pre class="re"><code>^[0-9A-Za-z][0-9A-Za-z_]*$</code></pre> matches this regexp:</p>
<pre class="re"><code>^[0-9A-Za-z][0-9A-Za-z._+-]*$&quot;</code></pre>
<p>Default <code>author_handle</code>’s do not have multiple consecutive <p>Default <code>author_handle</code>’s do not have multiple consecutive
<code>_</code> (underscore) characters. Nevertheless, multiple <code>_</code> (underscore) characters. Nevertheless, multiple
consecutive <code>_</code> (underscore) characters are allowed. Contest consecutive <code>_</code> (underscore) characters are allowed. Contest
@@ -2814,7 +2815,7 @@ not see who wrote the code.</p>
IOCCC becomes an <em>entry</em>. Only then do the IOCCC judges look into IOCCC becomes an <em>entry</em>. Only then do the IOCCC judges look into
the special JSON file to discover who the <em>author</em>(s) are.</p> the special JSON file to discover who the <em>author</em>(s) are.</p>
<p><strong>An apology for being inconsistent</strong>: In the past, the <p><strong>An apology for being inconsistent</strong>: In the past, the
IOCCC used the term <em>entry</em> to refer to what is now an IOCCC used the term <em>entry</em> to refer to what is now a
<em>submission</em>. In a number of historical cases, such as old rules <em>submission</em>. In a number of historical cases, such as old rules
and old guidelines, terms such as <em>entry</em> may still be found. and old guidelines, terms such as <em>entry</em> may still be found.
Moreover, out of habit, the IOCCC judges sometimes use old names such as Moreover, out of habit, the IOCCC judges sometimes use old names such as
+5 -4
View File
@@ -2504,11 +2504,12 @@ See [FAQ 6.6](#author_json) for information about the contents of these JSON fil
how they are used. how they are used.
Because the `author_handle` is used to form a JSON filename, the string must be Because the `author_handle` is used to form a JSON filename, the string must be
POSIX safe string. Furthermore, the `author_handle` must be an ASCII POSIX safe string plus the use of `+` (for technical reasons beyond this
string that matches this regexp: answer). In particular, the `author_handle` must be an ASCII string that
matches this regexp:
```re ```re
^[0-9A-Za-z][0-9A-Za-z_]*$ ^[0-9A-Za-z][0-9A-Za-z._+-]*$"
``` ```
Default `author_handle`'s do not have multiple consecutive `_` (underscore) Default `author_handle`'s do not have multiple consecutive `_` (underscore)
@@ -3125,7 +3126,7 @@ becomes an _entry_. Only then do the IOCCC judges look into
the special JSON file to discover who the _author_(s) are. the special JSON file to discover who the _author_(s) are.
**An apology for being inconsistent**: In the past, the IOCCC used the term _entry_ to **An apology for being inconsistent**: In the past, the IOCCC used the term _entry_ to
refer to what is now an _submission_. In a number of historical cases, refer to what is now a _submission_. In a number of historical cases,
such as old rules and old guidelines, terms such as _entry_ may still be such as old rules and old guidelines, terms such as _entry_ may still be
found. Moreover, out of habit, the IOCCC judges sometimes use old found. Moreover, out of habit, the IOCCC judges sometimes use old
names such as _entry_ when they should use _submission_. Sorry (tm Canada)! :-) names such as _entry_ when they should use _submission_. Sorry (tm Canada)! :-)