Skip to main content

core.isvalidmedplumsemver

Home > @medplum/core > isValidMedplumSemver

isValidMedplumSemver() function

Tests that a given version string follows the basic semver pattern of <int>.<int>.<int>, which is used for Medplum versions.

Signature:

export declare function isValidMedplumSemver(version: string): boolean;

Parameters

Parameter

Type

Description

version

string

A version string that should be tested for valid semver semantics.

Returns:

boolean

true if version is a valid semver version that conforms to the Medplum versioning system, otherwise false.