You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//Creamos una expresión, que determina que: Si el string empieza por un espacio, o si termian por un por un espacio, o si contiene más de dos espacios.
let pattern = /(^\s|\s$|\s{2,})/
// Evaluamos el string ('s'), buscando que no coincida con la expresión regular