Skip to content

Commit

Permalink
fix $pattern in getCleanedContent()` method
Browse files Browse the repository at this point in the history
  • Loading branch information
ciungulete committed Feb 22, 2024
1 parent daaa8c4 commit 562da13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ValueObjects/Transporter/Xml.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ private function getCleanedContent(string $xml_path): string
}

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

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

0 comments on commit 562da13

Please sign in to comment.