We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
$pattern
getCleanedContent()
1 parent daaa8c4 commit 46e14abCopy full SHA for 46e14ab
src/ValueObjects/Transporter/Xml.php
@@ -52,7 +52,7 @@ private function getCleanedContent(string $xml_path): string
52
}
53
54
// Regex pattern to match the xsi:schemaLocation attribute regardless of its content
55
- $pattern = '/\sxsi:schemaLocation="[^"]*"/';
+ $pattern = '/\sxsi:(schemaLocation|schemalocation)="[^"]*"/';
56
57
// Replace the matched pattern with an empty string
58
return (string) preg_replace($pattern, '', $xml_content);
0 commit comments