-
Notifications
You must be signed in to change notification settings - Fork 75
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
Wrong validation message when editing component id #12007
Comments
After discussing with Team Apps, this is what should be required for the ID pattern:
@Ildest @Annikenkbrathen do you have a suggestion to an error message that would be better? |
Det kan jeg se på 😊
Hilsen
Gørild Døhl
Jobber med innholdsdesign og klarspråk
***@***.***
48 24 05 96
Fra: WilliamThorenfeldt ***@***.***>
Dato: tirsdag, 9. april 2024 kl. 15:59
Til: Altinn/altinn-studio ***@***.***>
Kopi: Døhl, Gørild ***@***.***>, Mention ***@***.***>
Emne: Re: [Altinn/altinn-studio] Wrong validation message when editing component id (Issue #12007)
[ Ekstern e-post ]
After discussing with Team Apps, this is what should be required for the ID pattern:
* Can not start with -
* Can not end with - followed by a number
* Only have english letters
* Would be smart to have the length to minimum 2
The message should be updated to reflect the pattern.
@Ildest<https://github.com/Ildest> @Annikenkbrathen<https://github.com/Annikenkbrathen> do you have a suggestion to an error message that would be better?
This might be too long and complicated: Komponent-ID må ha minimum 2 tegn, kan ikke starte med -, kan ikke avslutte med - etterfulgt av tall, og kan kun bestå av engelske bokstaver, tall og bindestrek.
—
Reply to this email directly, view it on GitHub<#12007 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A2SS36S4OBO24CHFGQL2RULY4PX5FAVCNFSM6AAAAABBWLQUUKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBVGI2DOMJTGQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Forslag @WilliamThorenfeldt : Komponent-ID-en må ha minst 2 tegn. ID-en kan ikke starte med bindestrek (-) eller slutte med bindestrek og tall. Bruk bare tegn fra det engelske alfabetet. |
Supert @Ildest, takk for det 😄 |
Tested i dev💯 |
Description of the bug
It is not possible to write a component id shorter than 2 characters, to only use numbers, to start with
-
, etc, which is not specified in the error message:Komponent-ID kan kun bestå av engelske bokstaver, tall og '-' tegnet.
Why is the validation regex so restrictive?
Steps To Reproduce
Screen.Recording.2024-01-11.at.12.56.28.mov
Additional Information
No response
Tasks
The text was updated successfully, but these errors were encountered: