mirror of
https://github.com/morluto/rea.git
synced 2026-11-19 21:23:45 +00:00
fix(artifacts): read Maven and Gradle metadata with a UTF-8 BOM (#12009)
Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
This commit is contained in:
1 parent
2f6773cbc7
commit
2aaf76c5c1
2 files changed
+32
-2
No files matched your search
@@ -643,8 +643,7 @@ export const parseMavenGradleMetadata = (
|
||||
);
|
||||
let source: string;
|
||||
try {
|
||||
// ignoreBOM: true kept a leading U+FEFF; "preserve" is that same policy.
|
||||
source = decodeStrictUtf8(bytes, "preserve");
|
||||
source = decodeStrictUtf8(bytes, "strip-signature");
|
||||
} catch {
|
||||
throw malformedInput(
|
||||
MAVEN_GRADLE_METADATA_FORMAT,
|
||||
|
||||
Reference in new issue
Block a user