mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 17:09:08 +08:00
Simplify regex
This commit is contained in:
parent
63ffaaf25e
commit
9fccf58073
@ -97,7 +97,7 @@ export function exportVariable(name: string, val: any): void {
|
|||||||
* @param secret value of the secret
|
* @param secret value of the secret
|
||||||
*/
|
*/
|
||||||
export function setSecret(secret: string): void {
|
export function setSecret(secret: string): void {
|
||||||
secret.split(/\r?\n|\r/).forEach(part => {
|
secret.split(/[\r\n]/).forEach(part => {
|
||||||
if (part) {
|
if (part) {
|
||||||
issueCommand('add-mask', {}, part)
|
issueCommand('add-mask', {}, part)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user