Skip to content

Commit

Permalink
fix(desc-text): handle fuzzy email detection with non-ascii symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Sep 26, 2024
1 parent 8eea607 commit 453f8ba
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion config/vite.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,21 @@ import { mergeConfig } from 'vite'

/** @type {import('vite').UserConfig} */
export const baseConfig = {
plugins: [icons({ scale: 1 })],
plugins: [
icons({ scale: 1 }),
{
enforce: 'pre',
name: 'sefirot:patch-linkify-it',
transform(code, id) {
if (id.includes('markdown-it')) {
return code.replace(
'const text_separators = "[><\uFF5C]"',
'const text_separators = "[><\uFF00-\uFFEF]"' // https://www.fileformat.info/info/unicode/block/halfwidth_and_fullwidth_forms/index.htm
)
}
}
}
],

resolve: {
alias: { 'sefirot/': fileURLToPath(new URL('../lib/', import.meta.url)) },
Expand Down

0 comments on commit 453f8ba

Please sign in to comment.