New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

gitbook-plugin-jazer2

Package Overview
Dependencies
Maintainers
2
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitbook-plugin-jazer2

Gitbook exercises validated through a XRegExp (work in progress)

Source
npmnpm
Version
1.0.19
Version published
Weekly downloads
8
60%
Maintainers
2
Weekly downloads
 
Created
Source

Gitbook-Plugin-Jazer - REGEXP

Warning! This is a test version.

The main/true version for this gitbook plugin is in gitbook-plugin-jazer. This branch is only for testing and development.

This is work in development. Use it at your own risk.

Que es

Este es un plugin de ejemplo para gitbook en el que se permite realizar ejercicios cuya respuesta se valida mediante una expresión regular (Usando XRegExp)

Install

To use the jazer2 plugin in your Gitbook project, add the jazer2 plugin to the book.json file, then install plugins using gitbook install.

{
    "plugins": ["jazer2"]
}

Ejemplo Simple

{% regexp %}
¿Quien descubrió America?
{% solution %}
Cristobal Colon
{% validation %}
/\s*(Crist[oó]bal\s+)?Col[oó]n\s*/i
{% endregexp %}

Ejemplo con XRegExp:

Es posible usar 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 %}

Errores en la XRegExp

En el caso de que la XRegExp contenga errores se abre una ventana de alerta.

FAQs

Package last updated on 20 Mar 2016

Related posts