mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-11 04:40:00 +08:00
Rename escapedata to escapeData
This commit is contained in:
parent
8cdf51d182
commit
ab9b8a0c87
@ -68,13 +68,13 @@ class Command {
|
|||||||
// safely append the message - avoid blowing up when attempting to
|
// safely append the message - avoid blowing up when attempting to
|
||||||
// call .replace() if message is not a string for some reason
|
// call .replace() if message is not a string for some reason
|
||||||
const message: string = `${this.message || ''}`
|
const message: string = `${this.message || ''}`
|
||||||
cmdStr += escapedata(message)
|
cmdStr += escapeData(message)
|
||||||
|
|
||||||
return cmdStr
|
return cmdStr
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function escapedata(s: string): string {
|
function escapeData(s: string): string {
|
||||||
return s.replace(/\r/g, '%0D').replace(/\n/g, '%0A')
|
return s.replace(/\r/g, '%0D').replace(/\n/g, '%0A')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user