mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-12-01 12:24:23 +01:00
chore: Update dist
This commit is contained in:
1 parent
f04843b510
commit
ae509cd90a
1 file changed
+1
-1
Vendored
+1
-1
@@ -215,7 +215,7 @@ function sanitizeGithubWorkflowName(name) {
|
|||||||
// Workflow names can be almost any valid UTF-8 string, but tags are more restrictive.
|
// Workflow names can be almost any valid UTF-8 string, but tags are more restrictive.
|
||||||
// This replaces anything not conforming to the tag restrictions by inverting the regular expression.
|
// This replaces anything not conforming to the tag restrictions by inverting the regular expression.
|
||||||
// See the AWS documentation for constraint specifics https://docs.aws.amazon.com/STS/latest/APIReference/API_Tag.html.
|
// See the AWS documentation for constraint specifics https://docs.aws.amazon.com/STS/latest/APIReference/API_Tag.html.
|
||||||
const nameWithoutSpecialCharacters = name.replace(/[^\p{L}\p{Z}\p{N}_.:/=+-@]/gu, SANITIZATION_CHARACTER);
|
const nameWithoutSpecialCharacters = name.replace(/[^\p{L}\p{Z}\p{N}_:/=+.-@-]/gu, SANITIZATION_CHARACTER);
|
||||||
const nameTruncated = nameWithoutSpecialCharacters.slice(0, MAX_TAG_VALUE_LENGTH)
|
const nameTruncated = nameWithoutSpecialCharacters.slice(0, MAX_TAG_VALUE_LENGTH)
|
||||||
return nameTruncated
|
return nameTruncated
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user