mirror of
https://codeberg.org/scip/tablizer.git
synced 2025-12-17 12:31:06 +01:00
fix regex in example
This commit is contained in:
@@ -329,7 +329,7 @@ LISP PLUGINS [experimental]
|
|||||||
if it s larger than 5, false otherwise.
|
if it s larger than 5, false otherwise.
|
||||||
*/
|
*/
|
||||||
(defn uselarge [line]
|
(defn uselarge [line]
|
||||||
(cond (> (atoi (second (resplit line `\s+`))) 5) true false))
|
(cond (> (atoi (second (resplit line ` +`))) 5) true false))
|
||||||
|
|
||||||
/* Register the filter hook */
|
/* Register the filter hook */
|
||||||
(addhook %filter %uselarge)
|
(addhook %filter %uselarge)
|
||||||
@@ -355,6 +355,9 @@ LISP PLUGINS [experimental]
|
|||||||
(atoi [string]) => int
|
(atoi [string]) => int
|
||||||
(matchre [string, regex]) => bool
|
(matchre [string, regex]) => bool
|
||||||
|
|
||||||
|
The standard language is described here:
|
||||||
|
<https://github.com/glycerine/zygomys/wiki/Language>.
|
||||||
|
|
||||||
BUGS
|
BUGS
|
||||||
In order to report a bug, unexpected behavior, feature requests or to
|
In order to report a bug, unexpected behavior, feature requests or to
|
||||||
submit a patch, please open an issue on github:
|
submit a patch, please open an issue on github:
|
||||||
|
|||||||
@@ -522,7 +522,7 @@ Example:
|
|||||||
\& if it s larger than 5, false otherwise.
|
\& if it s larger than 5, false otherwise.
|
||||||
\& */
|
\& */
|
||||||
\& (defn uselarge [line]
|
\& (defn uselarge [line]
|
||||||
\& (cond (> (atoi (second (resplit line \`\es+\`))) 5) true false))
|
\& (cond (> (atoi (second (resplit line \` +\`))) 5) true false))
|
||||||
\&
|
\&
|
||||||
\& /* Register the filter hook */
|
\& /* Register the filter hook */
|
||||||
\& (addhook %filter %uselarge)
|
\& (addhook %filter %uselarge)
|
||||||
@@ -550,6 +550,8 @@ functions are provided by tablizer:
|
|||||||
\& (atoi [string]) => int
|
\& (atoi [string]) => int
|
||||||
\& (matchre [string, regex]) => bool
|
\& (matchre [string, regex]) => bool
|
||||||
.Ve
|
.Ve
|
||||||
|
.PP
|
||||||
|
The standard language is described here: <https://github.com/glycerine/zygomys/wiki/Language>.
|
||||||
.SH "BUGS"
|
.SH "BUGS"
|
||||||
.IX Header "BUGS"
|
.IX Header "BUGS"
|
||||||
In order to report a bug, unexpected behavior, feature requests
|
In order to report a bug, unexpected behavior, feature requests
|
||||||
|
|||||||
@@ -371,7 +371,7 @@ Example:
|
|||||||
if it s larger than 5, false otherwise.
|
if it s larger than 5, false otherwise.
|
||||||
*/
|
*/
|
||||||
(defn uselarge [line]
|
(defn uselarge [line]
|
||||||
(cond (> (atoi (second (resplit line `\s+`))) 5) true false))
|
(cond (> (atoi (second (resplit line ` +`))) 5) true false))
|
||||||
|
|
||||||
/* Register the filter hook */
|
/* Register the filter hook */
|
||||||
(addhook %filter %uselarge)
|
(addhook %filter %uselarge)
|
||||||
|
|||||||
Reference in New Issue
Block a user