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 ca9e8b5 commit 9584c42Copy full SHA for 9584c42
lua/rest-nvim/utils.lua
@@ -84,7 +84,7 @@ function utils.read_file(path)
84
end
85
86
function utils.parse_http_time(time_str)
87
- local pattern = "(%a+), (%d+)[\\s-](%a+)[\\s-](%d+) (%d+):(%d+):(%d+) GMT"
+ local pattern = "(%a+), (%d+)[%s-](%a+)[%s-](%d+) (%d+):(%d+):(%d+) GMT"
88
local _, day, month_name, year, hour, min, sec = time_str:match(pattern)
89
-- stylua: ignore
90
local months = {
0 commit comments