Can give defense file without .xml
This commit is contained in:
parent
e60879ca6e
commit
89f9c5c6d3
@ -97,7 +97,7 @@ sub tag_defense
|
|||||||
my $path;
|
my $path;
|
||||||
if ($_[3])
|
if ($_[3])
|
||||||
{
|
{
|
||||||
if ($_[3] =~ /(?:defenses\/)?([a-zA-Z0-9\/]+)(?:.xml)/) {
|
if ($_[3] =~ /^(?:defenses\/)?([a-zA-Z0-9\/]+)(?:.xml)?$/) {
|
||||||
$path = "defenses/".$1.".xml";
|
$path = "defenses/".$1.".xml";
|
||||||
} else {
|
} else {
|
||||||
$path = $_[3];
|
$path = $_[3];
|
||||||
|
Reference in New Issue
Block a user