• Johnny's avatar
    refactor(markdown): use Unicode categories for tag validation · b78d4c25
    Johnny authored
    Replace custom character whitelist with Unicode standards-based validation:
    
    - Use unicode.IsLetter/IsNumber/IsSymbol instead of hardcoded lists
    - Remove manual UTF-8 byte checking for CJK punctuation
    - Add proper rune-based length limiting (MAX_TAG_LENGTH = 100)
    - Improve international character support (CJK, Arabic, Cyrillic, etc.)
    - Add emoji support via unicode.IsSymbol
    
    Benefits:
    - Cleaner, more maintainable code (~50 lines removed)
    - Standards-based approach following Unicode categories
    - Better UTF-8 safety with utf8.DecodeRune
    - Consistent validation between Go backend and TypeScript frontend
    
    All existing tests pass with improved Unicode handling.
    b78d4c25
Name
Last commit
Last update
..
public Loading commit data...
src Loading commit data...
.gitignore Loading commit data...
biome.json Loading commit data...
components.json Loading commit data...
index.html Loading commit data...
package.json Loading commit data...
pnpm-lock.yaml Loading commit data...
tsconfig.json Loading commit data...
vite.config.mts Loading commit data...