Skip to content

Commit 46e14ab

Browse files
authored
fix $pattern in getCleanedContent()` method (#25)
1 parent daaa8c4 commit 46e14ab

File tree

1 file changed

+1
-1
lines changed
  • src/ValueObjects/Transporter

1 file changed

+1
-1
lines changed

src/ValueObjects/Transporter/Xml.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ private function getCleanedContent(string $xml_path): string
5252
}
5353

5454
// Regex pattern to match the xsi:schemaLocation attribute regardless of its content
55-
$pattern = '/\sxsi:schemaLocation="[^"]*"/';
55+
$pattern = '/\sxsi:(schemaLocation|schemalocation)="[^"]*"/';
5656

5757
// Replace the matched pattern with an empty string
5858
return (string) preg_replace($pattern, '', $xml_content);

0 commit comments

Comments
 (0)