mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 03:06:31 -05:00
fix: support dots in semver prerelease identifier
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
a2b291294e
commit
85e17bee79
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ async function parseVersionFromPackageJson(): Promise<ServerVersion> {
|
|||
const packageInfo = JSON.parse(rawFileContent) as { version: string };
|
||||
const versionParts = Optional.ofNullable(packageInfo.version)
|
||||
.orThrow(() => new Error('No version found in root package.json'))
|
||||
.map((version) => /^(\d+).(\d+).(\d+)(?:-(\w+))?$/g.exec(version))
|
||||
.map((version) => /^(\d+).(\d+).(\d+)(?:-([\w.]+))?$/g.exec(version))
|
||||
.orElseThrow(
|
||||
() =>
|
||||
new Error(
|
||||
|
|
Loading…
Reference in a new issue