Skip to content

Commit

Permalink
fix regex in example
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas von Dein committed Jan 10, 2025
1 parent 7ab1a11 commit 8792c5a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion cmd/tablizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ LISP PLUGINS [experimental]
if it s larger than 5, false otherwise.
*/
(defn uselarge [line]
(cond (> (atoi (second (resplit line `\s+`))) 5) true false))
(cond (> (atoi (second (resplit line ` +`))) 5) true false))
/* Register the filter hook */
(addhook %filter %uselarge)
Expand All @@ -355,6 +355,9 @@ LISP PLUGINS [experimental]
(atoi [string]) => int
(matchre [string, regex]) => bool
The standard language is described here:
<https://github.com/glycerine/zygomys/wiki/Language>.
BUGS
In order to report a bug, unexpected behavior, feature requests or to
submit a patch, please open an issue on github:
Expand Down
4 changes: 3 additions & 1 deletion tablizer.1
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ Example:
\& if it s larger than 5, false otherwise.
\& */
\& (defn uselarge [line]
\& (cond (> (atoi (second (resplit line \`\es+\`))) 5) true false))
\& (cond (> (atoi (second (resplit line \` +\`))) 5) true false))
\&
\& /* Register the filter hook */
\& (addhook %filter %uselarge)
Expand Down Expand Up @@ -550,6 +550,8 @@ functions are provided by tablizer:
\& (atoi [string]) => int
\& (matchre [string, regex]) => bool
.Ve
.PP
The standard language is described here: <https://github.com/glycerine/zygomys/wiki/Language>.
.SH "BUGS"
.IX Header "BUGS"
In order to report a bug, unexpected behavior, feature requests
Expand Down
2 changes: 1 addition & 1 deletion tablizer.pod
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ Example:
if it s larger than 5, false otherwise.
*/
(defn uselarge [line]
(cond (> (atoi (second (resplit line `\s+`))) 5) true false))
(cond (> (atoi (second (resplit line ` +`))) 5) true false))

/* Register the filter hook */
(addhook %filter %uselarge)
Expand Down

0 comments on commit 8792c5a

Please sign in to comment.