Skip to content

Commit 2a247a1

Browse files
actions-botgithub-actions[bot]
authored andcommitted
build: update distribution
1 parent 2e9b4cc commit 2a247a1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

dist/index.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -32339,9 +32339,9 @@ function addQueryParameters(url, parameters) {
3233932339
}
3234032340

3234132341
// pkg/dist-src/util/extract-url-variable-names.js
32342-
var urlVariableRegex = /\{[^}]+\}/g;
32342+
var urlVariableRegex = /\{[^{}}]+\}/g;
3234332343
function removeNonChars(variableName) {
32344-
return variableName.replace(/^\W+|\W+$/g, "").split(/,/);
32344+
return variableName.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g, "").split(/,/);
3234532345
}
3234632346
function extractUrlVariableNames(url) {
3234732347
const matches = url.match(urlVariableRegex);
@@ -32527,7 +32527,7 @@ function parse(options) {
3252732527
}
3252832528
if (url.endsWith("/graphql")) {
3252932529
if (options.mediaType.previews?.length) {
32530-
const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || [];
32530+
const previewsFromAcceptHeader = headers.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g) || [];
3253132531
headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map((preview) => {
3253232532
const format = options.mediaType.format ? `.${options.mediaType.format}` : "+json";
3253332533
return `application/vnd.github.${preview}-preview${format}`;
@@ -32611,7 +32611,7 @@ class RequestError extends Error {
3261132611
if (options.request.headers.authorization) {
3261232612
requestCopy.headers = Object.assign({}, options.request.headers, {
3261332613
authorization: options.request.headers.authorization.replace(
32614-
/ .*$/,
32614+
/(?<! ) .*$/,
3261532615
" [REDACTED]"
3261632616
)
3261732617
});
@@ -33192,7 +33192,7 @@ function iterator(octokit, route, parameters) {
3319233192
const response = await requestMethod({ method, url, headers });
3319333193
const normalizedResponse = normalizePaginatedListResponse(response);
3319433194
url = ((normalizedResponse.headers.link || "").match(
33195-
/<([^>]+)>;\s*rel="next"/
33195+
/<([^<>]+)>;\s*rel="next"/
3319633196
) || [])[1];
3319733197
return { value: normalizedResponse };
3319833198
} catch (error) {

0 commit comments

Comments
 (0)