Hi, I hope it is fine to continue asking on this thread?
I have 2 text fields which will be used to input LinkedIn profile URL and YouTube video URL.
I’ve been testing the regex pattern which I found around the internet and verified it multiple times with external regex website. But somehow Kirby’s panel UI doesn’t show the invalid field indicator (the red x) next to one of the invalid fields.
In this example, both fields are with a wrong “.com” spelling. But only Youtube field has the red invalid field indicator. I only realized the pattern check actually works because when I tried to save/publish the entry, a popup shows that both fields are actually invalid.
I wonder if this is a bug? My blueprint for that part:
Blueprint
linkedin:
label: LinkedIn
icon: linkedin
placeholder: LinkedIn profile URL
type: text
pattern: (?:https?:\/\/(www.)?linkedin.com\/(mwlite\/|m\/)?in\/[a-zA-Z0-9_.-]+\/?)
showcase:
label: Showcase
icon: youtube
placeholder: YouTube video URL
type: text
pattern: (?:https?:\/\/)?(?:youtu\.be\/|(?:www\.|m\.)?youtube\.com\/(?:watch|v|embed)(?:\.php)?(?:\?.*v=|\/))([a-zA-Z0-9\-_]+)