Reply To: html layout/event times/selector vs. scale/ compatibility

PennController for IBEX Forums Support html layout/event times/selector vs. scale/ compatibility Reply To: html layout/event times/selector vs. scale/ compatibility

#8025
HPI
Participant

Hi,

The original blank function i have copied paste here checked for blank spaces like this
(s && !s.match(/^\s*$/)) (if i understood correctly this checks that the box has not spaces)

the one you suggested me test.is(v=>v.match(/^\w{1,6}$/))

doesn’t consider accented letters and I must allow for accented LATIN and SLAVIC letters.

If I write a string containing “à” it considers the slot empty and doesn’t let me move forward in the task, and this is a bug.

Could you suggest how to improve the syntax?

I went around online to understand how to implement accented letters, but I really don’t get how to combine the syntax “any letter” “any accented letter” “1-6 characters long”.

I think I should write something like this /^[a-zA-Z\u00C0-\u017F]+$/ but I get errors, I don’t understand the correct way to write this here.

I was trying for a solution like “doesn’t match empty” as in the original function, but I don’t understand to negate .match

I managed to set the counter of the previous message.

Thank you for your help,

HPI