Skip to content

Commit 9584c42

Browse files
aktersnurraboltlessengineer
authored andcommitted
Update pattern
1 parent ca9e8b5 commit 9584c42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/rest-nvim/utils.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function utils.read_file(path)
8484
end
8585

8686
function utils.parse_http_time(time_str)
87-
local pattern = "(%a+), (%d+)[\\s-](%a+)[\\s-](%d+) (%d+):(%d+):(%d+) GMT"
87+
local pattern = "(%a+), (%d+)[%s-](%a+)[%s-](%d+) (%d+):(%d+):(%d+) GMT"
8888
local _, day, month_name, year, hour, min, sec = time_str:match(pattern)
8989
-- stylua: ignore
9090
local months = {

0 commit comments

Comments
 (0)