mirror of
https://github.com/getnamingo/registry.git
synced 2025-06-30 16:13:18 +02:00
Fixed numbers missing in IDN tables; added apostrophe and more Bulgarian characters; fixed #173
This commit is contained in:
parent
77d5c17ee1
commit
1a2d703ea2
2 changed files with 6 additions and 6 deletions
|
@ -385,13 +385,13 @@ class SystemController extends Controller
|
|||
$idntable = '/^(?!-)(?!.*--)[A-Z0-9-]{1,63}(?<!-)(.(?!-)(?!.*--)[A-Z0-9-]{1,63}(?<!-))*$/i';
|
||||
break;
|
||||
case 'cyrillic':
|
||||
$idntable = '/^[а-яА-ЯґҐєЄіІїЇѝЍћЋљЈ]+$/u';
|
||||
$idntable = '/^[а-яА-ЯґҐєЄіІїЇѝЍћЋљЈ0-9\'ѫѣѭ]+$/u';
|
||||
break;
|
||||
case 'japanese':
|
||||
$idntable = '/^[ぁ-んァ-ン一-龯々]+$/u';
|
||||
$idntable = '/^[ぁ-んァ-ン一-龯々0-9]+$/u';
|
||||
break;
|
||||
case 'korean':
|
||||
$idntable = '/^[가-힣]+$/u';
|
||||
$idntable = '/^[가-힣0-9]+$/u';
|
||||
break;
|
||||
default:
|
||||
$idntable = '/^(?!-)(?!.*--)[A-Z0-9-]{1,63}(?<!-)(.(?!-)(?!.*--)[A-Z0-9-]{1,63}(?<!-))*$/i';
|
||||
|
|
|
@ -30,9 +30,9 @@
|
|||
// Mapping of database string values to script names
|
||||
const dbValueToScriptName = {
|
||||
'/^(?!-)(?!.*--)[A-Z0-9-]{1,63}(?<!-)(.(?!-)(?!.*--)[A-Z0-9-]{1,63}(?<!-))*$/i': 'ASCII',
|
||||
'/^[а-яА-ЯґҐєЄіІїЇѝЍћЋљЈ]+$/u': 'Cyrillic',
|
||||
'/^[ぁ-んァ-ン一-龯々]+$/u': 'Japanese',
|
||||
'/^[가-힣]+$/u': 'Korean',
|
||||
'/^[а-яА-ЯґҐєЄіІїЇѝЍћЋљЈ0-9\'ѫѣѭ]+$/u': 'Cyrillic',
|
||||
'/^[ぁ-んァ-ン一-龯々0-9]+$/u': 'Japanese',
|
||||
'/^[가-힣0-9]+$/u': 'Korean',
|
||||
};
|
||||
|
||||
const scriptNameToBadgeClass = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue