Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b4aaa84

Browse files
committed
fix: cleanup
1 parent 7185eef commit b4aaa84

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

lua/leetcode-ui/group/case.lua

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -20,28 +20,6 @@ local Line = require("leetcode-ui.line")
2020
---@field question lc.ui.Question
2121
local Case = Group:extend("LeetCase")
2222

23-
local function split_input(input)
24-
local words = {}
25-
local curr_word = ""
26-
local inside = false
27-
28-
for char in input:gmatch(".") do
29-
if char == " " and not inside then
30-
if curr_word ~= "" then
31-
table.insert(words, curr_word)
32-
curr_word = ""
33-
end
34-
elseif char == "\"" then
35-
inside = not inside
36-
else
37-
curr_word = curr_word .. char
38-
end
39-
end
40-
41-
if curr_word ~= "" then table.insert(words, curr_word) end
42-
return words
43-
end
44-
4523
---@private
4624
---@param input string[]
4725
function Case:input(input)

0 commit comments

Comments
 (0)