We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7185eef commit b4aaa84Copy full SHA for b4aaa84
lua/leetcode-ui/group/case.lua
@@ -20,28 +20,6 @@ local Line = require("leetcode-ui.line")
20
---@field question lc.ui.Question
21
local Case = Group:extend("LeetCase")
22
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
39
40
41
- if curr_word ~= "" then table.insert(words, curr_word) end
42
- return words
43
-end
44
45
---@private
46
---@param input string[]
47
function Case:input(input)
0 commit comments