mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-12-03 18:24:21 +00:00
10 lines
175 B
Lua
10 lines
175 B
Lua
|
return function(utf8)
|
||
|
|
||
|
local cl = utf8.regex.compiletime.charclass.builder
|
||
|
|
||
|
return function(str, c, bs, ctx)
|
||
|
return cl.new():with_codes(c), utf8.next(str, bs) - bs
|
||
|
end
|
||
|
|
||
|
end
|