From 1f5d183a5e66fe7ba89c6c94b72fae73ece50ece Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Sat, 25 Apr 2020 03:33:37 +1200 Subject: [PATCH] Do not require user agent text --- scripts/process_log.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/process_log.js b/scripts/process_log.js index 09ff15e..32b8b57 100644 --- a/scripts/process_log.js +++ b/scripts/process_log.js @@ -85,7 +85,7 @@ class DateCollection { } // ip, date, method, path, status, bytes, userAgent -const regex = /^([^ ]+) - - \[([^\]]+)\] "([A-Z]+) ([^"]+) HTTP\/(?:1.0|1.1|2.0)" ([0-9]+) ([0-9]+) "([^"]+)"$/ +const regex = /^([^ ]+) - - \[([^\]]+)\] "([A-Z]+) ([^"]+) HTTP\/(?:1.0|1.1|2.0)" ([0-9]+) ([0-9]+) "([^"]*)"$/ function parseLine(line) { const result = line.match(regex)