Compare commits

...

1 Commits

Author SHA1 Message Date
Mardav Wala
ddccd1e4c0 Fix regex for content type check in index.js
Addresses https://github.com/actions/add-to-project/security/code-scanning/8
2025-08-15 11:02:53 -04:00

4
dist/index.js generated vendored
View File

@@ -5068,7 +5068,7 @@ async function getResponseData(response) {
if (/application\/json/.test(contentType)) {
return response.json().catch(() => response.text()).catch(() => "");
}
if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) {
if (!contentType || /^(text\/|charset=utf-8)$/.test(contentType)) {
return response.text();
}
return getBufferResponse(response);
@@ -31286,4 +31286,4 @@ module.exports = parseParams
/******/
/******/ })()
;
//# sourceMappingURL=index.js.map
//# sourceMappingURL=index.js.map