Skip to content

Commit

Permalink
Don’t autoselect identifier for UUIDs
Browse files Browse the repository at this point in the history
Storygraph was previously the only known identifier using UUIDs, but
BookBrainz and MusicBrainz have recently been added to the known
identifiers too, and they both use UUIDs as well.

This simply removes the matching of UUIDs entirely.

Fixes #9503
  • Loading branch information
Freso committed Jul 5, 2024
1 parent 968ffdf commit c9e42c0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion openlibrary/components/AuthorIdentifiers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
const identifierPatterns = {
wikidata: /^Q[1-9]\d*$/i,
isni: /^[0]{4} ?[0-9]{4} ?[0-9]{4} ?[0-9]{3}[0-9X]$/i,
storygraph: /^[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}$/i,
amazon: /^B[0-9A-Za-z]{9}$/,
youtube: /^@[A-Za-z0-9_\-.]{3,30}/,
}
Expand Down

0 comments on commit c9e42c0

Please sign in to comment.