Skip to content

Commit 100372c

Browse files
author
R. S. Doiel
committed
prep for v0.0.9, Fix a bug in my regex for validating the ORCID element of a person agent input for the new '<input-agent-list></input-agent-list>' web component.
1 parent 5aa38e9 commit 100372c

12 files changed

+14
-17
lines changed

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ contacts:
3232
3333

3434
repository-code: "https://github.com/caltechlibrary/CL-web-components"
35-
version: 0.0.8
35+
version: 0.0.9
3636
date-released: 2025-07-03
3737

3838
license-url: "https://caltechlibrary.github.io/CL-web-components/LICENSE"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The following are the components currently provided.
2020

2121
## Release Notes
2222

23-
- version: 0.0.8
23+
- version: 0.0.9
2424
- status: wip
2525
- released: 2025-07-03
2626

about.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@
1919
</nav>
2020
<section>
2121
<h1 id="about-this-software">About this software</h1>
22-
<h2 id="cl-web-components-0.0.8">CL-web-components 0.0.8</h2>
23-
<p>Added a new `&lt;input-agent-list&gt;&lt;/input-agent-list&gt;` web
24-
component. This allows you to use a textarea containing a list of agents
25-
(people and organizations) to be presented as a friendly editing element
26-
while preserving the textarea with JSON as a fallback.</p>
22+
<h2 id="cl-web-components-0.0.9">CL-web-components 0.0.9</h2>
23+
<p>Fix a bug in my regex for validating the ORCID element of a person
24+
agent input for the new
25+
`&lt;input-agent-list&gt;&lt;/input-agent-list&gt;` web component.</p>
2726
<h3 id="authors">Authors</h3>
2827
<ul>
2928
<li>R. S. Doiel, <a href="https://orcid.org/0000-0003-0900-6903"

about.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ maintainer:
2828
id: https://orcid.org/0000-0003-0900-6903
2929

3030
repository_code: https://github.com/caltechlibrary/CL-web-components
31-
version: 0.0.8
31+
version: 0.0.9
3232
license_url: https://caltechlibrary.github.io/CL-web-components/LICENSE
3333

3434
programming_language:
@@ -49,10 +49,9 @@ date_released: 2025-07-03
4949
About this software
5050
===================
5151

52-
## CL-web-components 0.0.8
52+
## CL-web-components 0.0.9
5353

54-
Added a new &#x60;&lt;input-agent-list&gt;&lt;/input-agent-list&gt;&#x60; web component. This allows you to use a textarea containing a list of agents (people and organizations)
55-
to be presented as a friendly editing element while preserving the textarea with JSON as a fallback.
54+
Fix a bug in my regex for validating the ORCID element of a person agent input for the new &#x60;&lt;input-agent-list&gt;&lt;/input-agent-list&gt;&#x60; web component.
5655

5756
### Authors
5857

codemeta.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@
4646
"https://github.com/caltechlibrary/a_to_z_ul"
4747
],
4848
"runtimePlatform": "- HTML5-compatible web browser",
49-
"version": "0.0.8",
49+
"version": "0.0.9",
5050
"developmentStatus": "wip",
5151
"issueTracker": "https://github.com/caltechlibrary/CL-web-components/issues",
5252
"downloadUrl": "https://github.com/caltechlibrary/CL-web-components/releases",
53-
"releaseNotes": "Added a new `<input-agent-list></input-agent-list>` web component. This allows you to use a textarea containing a list of agents (people and organizations)\nto be presented as a friendly editing element while preserving the textarea with JSON as a fallback.",
53+
"releaseNotes": "Fix a bug in my regex for validating the ORCID element of a person agent input for the new `<input-agent-list></input-agent-list>` web component.",
5454
"copyrightYear": 2025,
5555
"copyrightHolder": "California Institute of Technology"
5656
}

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ <h1 id="cl-web-components">CL-web-components</h1>
4848
</dl>
4949
<h2 id="release-notes">Release Notes</h2>
5050
<ul>
51-
<li>version: 0.0.8</li>
51+
<li>version: 0.0.9</li>
5252
<li>status: wip</li>
5353
<li>released: 2025-07-03</li>
5454
</ul>

input-agent-list.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@ class InputAgentList extends HTMLElement {
105105
<input type="text" placeholder="Given Name" title="Giveny Name" value="${
106106
agent.given_name || ""
107107
}" data-index="${index}" data-field="given_name" style="${styleAttribute}">
108-
<input type="text" pattern="^(?:https:\/\/orcid\.org\/)?\d{4}-\d{4}-\d{4}-\d{3}[\dX]$|^(?:https:\/\/orcid\.org\/)?(\d{4}-){3}\d{3}[\dX]$
109-
" placeholder="ORCID" title="ORCID" value="${
108+
<input type="text" pattern="^\\d{4}-\\d{4}-\\d{4}-\\d{3}[\\dX]$|^https:\\/\\/orcid\\.org\\/\\d{4}-\\d{4}-\\d{4}-\\d{3}[\\dX]$" placeholder="ORCID" title="ORCID" value="${
110109
agent.orcid || ""
111110
}" data-index="${index}" data-field="orcid" style="${styleAttribute}">
112111
</div>
840 Bytes
Binary file not shown.
857 Bytes
Binary file not shown.
21.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)