Regex to limit length -JIRA page freezes

Eshita Seelam June 10, 2022

Hi, we have created a regex validator for a text field

"^$|(?=.{1,127}$)[A-Za-z0-9]+([A-Za-z0-9\-\.]*)+$" to make sure the input string is 127 characters long, starts with a letter/number, and only contains alphanumeric/hyphen/period characters.

The validator breaks just fine for "test-repo.lambda " however for "compare-gold-copy-price-to-vendor " or "compare-gold-copy-price-to-vendor-prices.lambda "(all of them with a space in the end), the page just freezes and the validator does not pop up.

It seems to be related to the length of the name because "test-repo-long-long-long-long.lambda " freezes it but "test-repo.lambda " breaks it.

Could you please help us on this. Thank you.

 

 

 

 

 

 

0 answers

Suggest an answer

Log in or Sign up to answer