Skip to content

Commit

Permalink
PCRE2 compatible
Browse files Browse the repository at this point in the history
Resolve issue #37
  • Loading branch information
Robin committed Jan 30, 2019
1 parent c3b6108 commit 9f71d56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Kassner/LogParser/LogParser.php
Expand Up @@ -22,7 +22,7 @@ class LogParser
'%p' => '(?P<port>\d+)',
'%r' => '(?P<request>(?:(?:[A-Z]+) .+? HTTP/(1\.0|1\.1|2\.0))|-|)',
'%t' => '\[(?P<time>\d{2}/(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)/\d{4}:\d{2}:\d{2}:\d{2} (?:-|\+)\d{4})\]',
'%u' => '(?P<user>(?:-|[\w-\.]+))',
'%u' => '(?P<user>(?:-|[\w\-\.]+))',
'%U' => '(?P<URL>.+?)',
'%v' => '(?P<serverName>([a-zA-Z0-9]+)([a-z0-9.-]*))',
'%V' => '(?P<canonicalServerName>([a-zA-Z0-9]+)([a-z0-9.-]*))',
Expand Down

0 comments on commit 9f71d56

Please sign in to comment.