-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separating the
orcid.js
from application.js
and ensuring that `de…
…scribe/` is prefixed to the Webpack manifest paths
- Loading branch information
1 parent
9f33222
commit 43c2e2a
Showing
4 changed files
with
9 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
export function isOrcid(value) { | ||
function isOrcid(value) { | ||
// Notice that we allow for an "X" as the last digit. | ||
// Source https://gist.github.com/asencis/644f174855899b873131c2cabcebeb87 | ||
return /^(\d{4}-){3}\d{3}(\d|X)$/.test(value) | ||
}; | ||
|
||
window.isOrcid = isOrcid; | ||
|
||
export { isOrcid }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters