1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-19 07:19:58 +00: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) {