Skip to content

Commit ca9e8b5

Browse files
aktersnurraboltlessengineer
authored andcommitted
Fix regex pattern
1 parent fafa283 commit ca9e8b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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+) (%a+) (%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)