mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-21 18:55:19 -04:00
chore(commons): prettier
enforce trailing commas as this is the norm in the frontend and makes diffs better readable Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
59744b65ea
commit
aa87ff35b3
32 changed files with 171 additions and 171 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
|
||||
* SPDX-FileCopyrightText: 2025 The HedgeDoc developers (see AUTHORS file)
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
@ -18,11 +18,11 @@ export function parseUrl(url: string | undefined): Optional<URL> {
|
|||
return createOptionalUrl(url)
|
||||
.guard(
|
||||
(value) => value.protocol === 'https:' || value.protocol === 'http:',
|
||||
() => new WrongProtocolError()
|
||||
() => new WrongProtocolError(),
|
||||
)
|
||||
.guard(
|
||||
(value) => value.pathname === '/',
|
||||
() => new NoSubdirectoryAllowedError()
|
||||
() => new NoSubdirectoryAllowedError(),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue