Skip to content

Commit

Permalink
Replaced deprecated method with non-deprecated method.
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav committed Dec 17, 2024
1 parent 3c5d71a commit 0e86a9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wrappers/SpecimenWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class SpecimenWrapper {
static fromOccurrenceID(occurrenceID, basisOfRecord = 'PreservedSpecimen') {
// Copy the occurrence ID so we can truncate it if necessary.
let occurID = occurrenceID;
if (occurID.startsWith('urn:catalog:')) occurID = occurID.substr(12);
if (occurID.startsWith('urn:catalog:')) occurID = occurID.substring(12);

// Prepare the specimen.
const specimen = {
Expand Down

0 comments on commit 0e86a9c

Please sign in to comment.