mirror of
https://github.com/kepler155c/opus
synced 2025-12-18 22:28:06 +00:00
reorganization
This commit is contained in:
@@ -426,6 +426,10 @@ function Util.matches(str, pattern)
|
||||
return t
|
||||
end
|
||||
|
||||
function Util.startsWidth(s, match)
|
||||
return string.sub(s, 1, #match) == match
|
||||
end
|
||||
|
||||
function Util.widthify(s, len)
|
||||
s = s or ''
|
||||
local slen = #s
|
||||
|
||||
Reference in New Issue
Block a user