We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Este es un ejemplo de prueba para testear la opción xde XRegExp:
x
XRegExp
{% regexp %} ¿Quienes reinaban en España cuando se descubrió America? {% solution %} Los Reyes Católicos {% validation %} / (Isabel\s+ # nombre sencillo ((I\s+)?de\s+Castilla\s+)? # titulo de Isabel y \s+Fernando # nombre sencillo (\s+(II\s+)?de\s+Arag[oó]n)?) # titulo de Fernando | (Reyes\s+Cat[oó]licos) # conocidos también por este nombre /ix {% endregexp %}
Para que funcione he cambiado las líneas de assets/myfile.js de construcción de la regexp por estas:
assets/myfile.js
var fail = $regexp.find(".fail"); var match = codeValidation.match(/^\/((?:.|\n)*)\/([sxnAgimy]*)$/); var pattern = match[1]; var flags = match[2]; var regex = XRegExp(pattern,flags);
Estas líneas sustituyen a las que ahora están:
var fail = $regexp.find(".fail"); - var regexp = new RegExp(codeValidation, "i"); + + var flags = codeValidation.replace(/.*\/([gimy]*)$/, '$1'); + var pattern = codeValidation.replace(new RegExp('^/(.*?)/'+flags+'$'), '$1'); var regex = XRegExp(pattern,flags);
The text was updated successfully, but these errors were encountered:
sokartema
No branches or pull requests
Este es un ejemplo de prueba para testear la opción
x
deXRegExp
:Para que funcione he cambiado las líneas de
assets/myfile.js
de construcción de la regexp por estas:Estas líneas sustituyen a las que ahora están:
The text was updated successfully, but these errors were encountered: