Make storing standard regexps a bit more sensible.
This commit is contained in:
parent
54c4c4c7dc
commit
f1368d4821
@ -65,6 +65,8 @@ sub new {
|
||||
my $invocant = shift;
|
||||
my $class = ref($invocant) || $invocant;
|
||||
my $self = $class -> SUPER::new("logtable" => "",
|
||||
"formats" => {"url" => '^https?://[-\w]+(?:\.[-\w]+)+(?:/(?:[-\w]+/)*[-.\w]*(?:\?(?:[-\w~!\$+|.,*:;]|%[a-f\d]{2,4})+=(?:[-\w~!\$+|.,*:]|%[a-f\d]{2,4})*(?:&(?:[-\w~!\$+|.,*:;]|%[a-f\d]{2,4})+=(?:[-\w~!\$+|.,*:]|%[a-f\d]{2,4})*)*)?(?:\#(?:[-\w~!\$+|&.,*:;=]|%[a-f\d]{2,4})*)?)?$',
|
||||
},
|
||||
@_)
|
||||
or return undef;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user