Fix html content detection regex to not include markdown autolinks (#3720)

This commit is contained in:
Zane
2025-07-30 09:40:12 -07:00
committed by GitHub
parent e5ac6412ec
commit f47836bbe8
8 changed files with 2845 additions and 35 deletions
+22
View File
@@ -0,0 +1,22 @@
/// <reference types="vitest" />
import { defineConfig } from 'vitest/config'
import react from '@vitejs/plugin-react'
import { resolve } from 'node:path'
const cfg = {
plugins: [react()],
resolve: {
alias: {
'@': resolve(__dirname, './src'),
},
},
test: {
globals: true,
environment: 'jsdom',
setupFiles: ['./src/test/setup.ts'],
css: true,
include: ['src/**/*.{test,spec}.{js,jsx,ts,tsx}'],
},
} satisfies Record<string, any>
export default defineConfig(cfg as any)