Fix lint error: remove unnecessary escape in regex
Co-authored-by: TingluoHuang <[email protected]>
This commit is contained in:
co-authored by
TingluoHuang
parent
3a191eecf6
commit
bccbba401a
@@ -822,7 +822,7 @@ export class HttpClient {
|
|||||||
if (orchId) {
|
if (orchId) {
|
||||||
// Sanitize the orchestration ID to ensure it contains only valid characters
|
// Sanitize the orchestration ID to ensure it contains only valid characters
|
||||||
// Valid characters: 0-9, a-z, _, -, .
|
// Valid characters: 0-9, a-z, _, -, .
|
||||||
const sanitizedId = orchId.replace(/[^a-z0-9_.\-]/gi, '_')
|
const sanitizedId = orchId.replace(/[^a-z0-9_.-]/gi, '_')
|
||||||
return `${baseUserAgent} actions_orchestration_id/${sanitizedId}`
|
return `${baseUserAgent} actions_orchestration_id/${sanitizedId}`
|
||||||
}
|
}
|
||||||
return baseUserAgent
|
return baseUserAgent
|
||||||
|
|||||||
Reference in New Issue
Block a user