1
0
mirror of https://github.com/elk-zone/elk synced 2024-11-23 22:56:09 +09:00

fix: detect Takahe hashtags correctly (#2024)

This commit is contained in:
Christof Dorner 2023-04-28 17:33:34 +00:00 committed by GitHub
parent 5bd17d3006
commit 320ed81555
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
import type { mastodon } from 'masto' import type { mastodon } from 'masto'
export const UserLinkRE = /^(?:https:\/)?\/([^/]+)\/@([^/]+)$/ export const UserLinkRE = /^(?:https:\/)?\/([^/]+)\/@([^/]+)$/
export const TagLinkRE = /^https?:\/\/([^/]+)\/tags\/([^/]+)$/ export const TagLinkRE = /^https?:\/\/([^/]+)\/tags\/([^/]+)\/?$/
export const HTMLTagRE = /<[^>]+>/g export const HTMLTagRE = /<[^>]+>/g
export function getDataUrlFromArr(arr: Uint8ClampedArray, w: number, h: number) { export function getDataUrlFromArr(arr: Uint8ClampedArray, w: number, h: number) {