biome format --write

This commit is contained in:
Henry Jameson 2026-01-06 16:22:52 +02:00
commit 9262e803ec
415 changed files with 54076 additions and 17419 deletions

View file

@ -22,7 +22,9 @@ export const getAttrs = (tag, filter) => {
.replace(new RegExp('^' + getTagName(tag)), '')
.replace(/\/?$/, '')
.trim()
const attrs = Array.from(innertag.matchAll(/([a-z]+[a-z0-9-]*)(?:=("[^"]+?"|'[^']+?'))?/gi))
const attrs = Array.from(
innertag.matchAll(/([a-z]+[a-z0-9-]*)(?:=("[^"]+?"|'[^']+?'))?/gi),
)
.map(([, key, value]) => [key, value])
.map(([k, v]) => {
if (!v) return [k, true]
@ -59,7 +61,10 @@ export const processTextForEmoji = (text, emojis, processor) => {
const next = text.slice(i + 1)
let found = false
for (const emoji of emojis) {
if (next.slice(0, emoji.shortcode.length + 1) === (emoji.shortcode + ':')) {
if (
next.slice(0, emoji.shortcode.length + 1) ===
emoji.shortcode + ':'
) {
found = emoji
break
}