Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
o-useless-escape lint error
  • Loading branch information
joechung-msft committed Dec 6, 2023
1 parent 89580fe commit 9d156d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ export const getFederatedCredentialName = (fullRepoName: string): string => {
}

// Remove characters that are not letters, numbers, hyphens, or dashes
name = name.replace(/[^a-zA-Z0-9\-]/g, '');
name = name.replace(/[^a-zA-Z0-9-]/g, '');

// Ensure the string starts with a letter or number
if (name && !/^[a-zA-Z0-9]/.test(name)) {
Expand Down

0 comments on commit 9d156d1

Please sign in to comment.