mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2025-12-13 18:25:07 +00:00
Do not require user agent text
This commit is contained in:
@@ -85,7 +85,7 @@ class DateCollection {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ip, date, method, path, status, bytes, userAgent
|
// 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) {
|
function parseLine(line) {
|
||||||
const result = line.match(regex)
|
const result = line.match(regex)
|
||||||
|
|||||||
Reference in New Issue
Block a user