Fix calendario not working sometimes because of a bad formed regex