fix: replace unsupported Hrkt unicode property to Hira and Kana (#705)

# PR Checklist
- [x] Have you checked if it works normally in all models? *Ignore this
if it doesn't use models.*
- [x] Have you checked if it works normally in all web, local, and node
hosted versions? If it doesn't, have you blocked it in those versions?
- [ ] Have you added type definitions?

# Description
`Auto Regenerate On Characterset` feature can throw the following error
when `Hrkt` is enabled:
```
Error while parsing chat message: true, Invalid regular expression: /\p{Script=Hrkt}/gu: Invalid property name
```

This PR fixes regex parsing issues with unicode property:
1. Replaces unsupported `Hrkt` property with separate `Hira` and `Kana`
properties
2. Updates preview text for each property to match the changes
This commit is contained in:
kwaroran
2025-01-06 00:10:35 +09:00
committed by GitHub

View File

@@ -27,7 +27,8 @@
'Deva',
'Cyrl',
'Beng',
'Hrkt',
'Hira',
'Kana',
'Telu',
'Hang',
'Taml',
@@ -47,7 +48,8 @@
'Deva': "अआइ",
'Cyrl': "АБВ",
'Beng': "অআই",
'Hrkt': "あ",
'Hira': "あ",
'Kana': "アイ",
'Telu': "అఆఇ",
'Hang': "가나다",
'Taml': "அஆஇ",