-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validation of fields in Admin does not support non A-Z characters #1187
Comments
The issue lies here: Hajk/new-admin/src/views/search.jsx Line 366 in ed6c87e
As per RegEx docs:
There are two solutions now: The second option limits the check to latin and cyrillic only though and is not a good fix in my opinion. So I'll just remove the check, for now. @bitmapbulgaria: Are you aware of a recommended way to check for word characters that would accept all non-latin alphabets too? |
Thanks, this is a really good solution and I'll go with that. It seems to work for most cases, the only noticable exception I found is Hebrew (I'm not sure why it would not match, as it |
On a second though: something like this would match Hebrew characters too. But I'm not sure if how much it does in this case, as we allow pretty much any character except a leading space. ^[\p{L}]+[\p{L}\p{N}\p{M}\p{P}\p{C}]+(\s+[-\p{L}\p{N}_-]+)*$ What do you guys think: should we allow pretty much anything except starting/ending whitespace and some punctation marks (such as |
My regex proposal was with "I can fill some wrong here accidently and after that will try to figure out, what's wrong" in mind. Anyway, put ^ * & ( ) | \ symbols in PostgreSQL and Geoserver fields names is not possible (but I'm not sure about other DB/gisservers :) ) |
I think we'll settle with |
I'm extracting this comment into an issue of its own:
Just another small fix needed ( I have got hardcoded the value of these in Cyrillic and it works-I have setup my GeoServer Cyrillic aliases for the real field names):
Otherwise, it is impossible to save Cyrillic values for the field names in Admin Panel:
This is a screenshot of the red colored inputs.
Originally posted by @bitmapbulgaria in #1181 (comment)
The text was updated successfully, but these errors were encountered: