I was having the url which on converting to punycode has suffix as xn---- which all the regex present in ruby libraries fails to match. Currently I am using validates_url_format_of ruby library. Example Url: "https://www.θεραπευτικη-κανναβη.com.gr" Punycode url: "https://www.xn----ylbbafnbqebomc7ba3bp1ds.com.gr"
So can you please suggest that is there any issue in the regex in the library or the issue lies in the conversion to punycode.
As per the punycode conversion rules the suffix always is xn--. So can anyone suggest what extra two -- means here