Differences From Artifact [11e159b24a]:
- File 残局文料/lib/程语_月_基类_文_内置库_加多.lua — part of check-in [f3e7596fd8] at 2024-01-26 14:14:03 on branch trunk — (/ω\) (user: 顽雨沉风, size: 321) [annotate] [blame] [check-ins using]
To Artifact [dc73f90efa]:
- File 残局文料/lib/程语_月_基类_文_内置库_加多.lua — part of check-in [22b0919894] at 2024-01-27 02:23:15 on branch trunk — (/ω\) (user: 顽雨沉风, size: 553) [annotate] [blame] [check-ins using]
︙ | |||
10 11 12 13 14 15 16 17 | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | + + + + + + + + + + + | return nil end local s = self:gsub("%s+$", "") return s end function string:strip() return self:lstrip():rstrip() end function string:startswith(text) local size = text:len() if self:sub(1, size) == text then return self end end function string:endswith(text) if self:sub(-#text) == text then return self end end |