creecros / MetaMagik

Custom Fields for Kanboard - Plugin MetaMagik
MIT License
98 stars 16 forks source link

Custom field caption #74

Closed Crutchmaster closed 2 years ago

Crutchmaster commented 3 years ago

Name is latin only. How about caption with custom utf string?

creecros commented 3 years ago

I do not understand the request.

Crutchmaster commented 3 years ago
    private function fixHumanName($human_name = '')
    {
        // Remove special characters (remove the below line to support non latin characters)
        $human_name = preg_replace('/[^A-Za-z0-9_\s-]/', '', $human_name);
...

$humanname accept only A-Za-z0-9\s-. All other utf chars will be cut. If I want not latin chars, I must edit code or edit human_name field in metadata_type table. It might be worth making a caption field?

creecros commented 2 years ago

https://github.com/creecros/MetaMagik/issues/61

you are welcome to make a pull request