diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-30 13:54:40 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-30 13:54:40 -0700 |
| commit | 43e8da178084184db1701b0abb9d615046b4c51d (patch) | |
| tree | e938c3671d613c467bf5838906626e291f99f41e /core | |
| parent | 0d48b5add8b24b300ea3fd46290c25902d4f6720 (diff) | |
Simplifying.
Diffstat (limited to 'core')
| -rw-r--r-- | core/text.nom | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/text.nom b/core/text.nom index 237c395..5ec7b23 100644 --- a/core/text.nom +++ b/core/text.nom @@ -53,12 +53,12 @@ compile [bytes %start to %stop of %text] to (..) test: assume (("asdf" capitalized) == "Asdf") compile [capitalized %text, %text capitalized] to (..) - Lua value "((\(%text as lua expr)):gsub('%l', string.upper, 1))" + Lua value "(\(%text as lua expr)):gsub('%l', string.upper, 1)" test: assume (("asdf" uppercase) == "ASDF") compile [uppercase %text, %text uppercase] to (..) - Lua value "((\(%text as lua expr)):gsub('%l', string.upper))" + Lua value "(\(%text as lua expr)):upper()" test: assume (("asdf" with "X" instead of "s") == "aXdf") or barf ".." |
