firefox bug workaround (re engine does not match when it should, if input is too long)