Skip to content

Commit

Permalink
refactor: remove unused util function
Browse files Browse the repository at this point in the history
  • Loading branch information
eldu committed Feb 6, 2024
1 parent 9e55f3b commit d95e1a9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,6 @@ export const fetchDoi = async (doi: string): Promise<object> => {
};
};

export function extractDOI(str: string): string | null {
const doiRegex = /10\.\d{4,9}\/[-._;()/:a-zA-Z0-9]+/;
const dois = str.match(doiRegex);
return dois ? dois[0] : null;
}

export function validateDoi() {
return yup
.string()
Expand Down

0 comments on commit d95e1a9

Please sign in to comment.