Skip to content

Commit c5f7e88

Browse files
MrZ626Copilot
andauthored
Apply suggestions from code review
in next,t改in pairs(t),写习惯了 Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 35a37a0 commit c5f7e88

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

script/core/color.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ local function getColorMode(source)
1414
---@type string
1515
local text = source[1]
1616

17-
for k,v in next,colorPattern do
17+
for k,v in pairs(colorPattern) do
1818
if text:match(v) then
1919
return k
2020
end

0 commit comments

Comments
 (0)