Skip to content

Commit

Permalink
Change validation message for annotation value
Browse files Browse the repository at this point in the history
Use DOI url as example of proper value for annotation value

Issue #2542
  • Loading branch information
robyngit committed Dec 17, 2024
1 parent d81d812 commit 463ebea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/models/metadata/eml211/EMLAnnotation.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ define(["jquery", "underscore", "backbone"], function ($, _, Backbone) {

const emptyErrorMsg = (label) => `${label} must be set.`;
const uriErrorMsg = (label) =>
`${label} should be an HTTP(S) URI, for example: http://example.com`;
`${label} should be an HTTP(S) URI, for example: https://doi.org/xxxx.`;

const isValidURI = (uri) => uri.match(/http[s]?:\/\/.+/) !== null;

Expand Down

0 comments on commit 463ebea

Please sign in to comment.