mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 12:36:57 +00:00
add TODO reminder to ApRendererService.ts
This commit is contained in:
parent
02fa8f03e5
commit
1c5df0e8e2
1 changed files with 1 additions and 0 deletions
|
@ -548,6 +548,7 @@ export class ApRendererService {
|
||||||
this.userProfilesRepository.findOneByOrFail({ userId: user.id }),
|
this.userProfilesRepository.findOneByOrFail({ userId: user.id }),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
// TODO remove this when we merge the MFM change
|
||||||
const tryRewriteUrl = (maybeUrl: string) => {
|
const tryRewriteUrl = (maybeUrl: string) => {
|
||||||
const urlSafeRegex = /^(?:http[s]?:\/\/.)?(?:www\.)?[-a-zA-Z0-9@%._\+~#=]{2,256}\.[a-z]{2,6}\b(?:[-a-zA-Z0-9@:%_\+.~#?&\/\/=]*)/;
|
const urlSafeRegex = /^(?:http[s]?:\/\/.)?(?:www\.)?[-a-zA-Z0-9@%._\+~#=]{2,256}\.[a-z]{2,6}\b(?:[-a-zA-Z0-9@:%_\+.~#?&\/\/=]*)/;
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Add table
Reference in a new issue