Skip to content

Commit

Permalink
Fixci (#51)
Browse files Browse the repository at this point in the history
* Update deftest

* Fix mask text iteration
  • Loading branch information
britzl authored May 24, 2019
1 parent 49b19f0 commit fe2e929
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion game.project
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
title = Gooey
dependencies = https://github.com/britzl/deftest/archive/2.3.0.zip
dependencies = https://github.com/britzl/deftest/archive/2.7.0.zip

[bootstrap]
main_collection = /example/controller.collectionc
Expand Down
6 changes: 3 additions & 3 deletions gooey/internal/input.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ local function get_text_width(node, text)
end


function M.utf8_gfind(text)
return utf8.gmatch(text)
function M.utf8_gfind(text, regex)
return utf8.gmatch(text, regex)
end


Expand All @@ -47,7 +47,7 @@ end
function M.mask_text(text, mask)
mask = mask or "*"
local masked_text = ""
for uchar in M.utf8_gfind(text) do
for uchar in M.utf8_gfind(text, ".") do
masked_text = masked_text .. mask
end
return masked_text
Expand Down

0 comments on commit fe2e929

Please sign in to comment.