mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-06 20:16:57 +00:00
change regex to include a zero-length match
This commit is contained in:
parent
581cc2b513
commit
e2be44fb99
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ export class ApiInstanceMastodon {
|
|||
const roles = await this.roleService.getUserPolicies(me?.id ?? null);
|
||||
|
||||
const response: MastodonEntity.Instance = {
|
||||
uri: this.config.url.replace(/^https?:\/\//, ''),
|
||||
uri: this.config.url.replace(/^(https?:|)\/\//, ''),
|
||||
title: this.meta.name || 'Sharkey',
|
||||
description: this.meta.description || 'This is a vanilla Sharkey Instance. It doesn\'t seem to have a description.',
|
||||
email: instance.email || '',
|
||||
|
|
Loading…
Add table
Reference in a new issue