@@ -18,20 +18,20 @@ if (core.getInput("commit-author")) {
18
18
assert . equal ( core . getInput ( "commit-author-name" ) , "" ) ;
19
19
assert . equal ( core . getInput ( "commit-author-email" ) , "" ) ;
20
20
if (
21
- / ^ \s + @ ? g i t h u b [ - _ ] ? a c t i o n s (?: \[ b o t \] ) ? \s + $ / . test (
21
+ / ^ \s * @ ? g i t h u b [ - _ ] ? a c t i o n s (?: \[ b o t \] ) ? \s * $ / . test (
22
22
core . getInput ( "commit-author" )
23
23
)
24
24
) {
25
25
GIT_AUTHOR_NAME = "github-actions[bot]" ;
26
26
GIT_AUTHOR_EMAIL =
27
27
"41898282+github-actions[bot]@users.noreply.github.com" ;
28
- } else if ( / ^ \s + @ ? m e \s + $ / . test ( core . getInput ( "commit-author" ) ) ) {
28
+ } else if ( / ^ \s * @ ? m e \s * $ / . test ( core . getInput ( "commit-author" ) ) ) {
29
29
GIT_AUTHOR_NAME = process . env . GITHUB_ACTOR ;
30
30
GIT_AUTHOR_EMAIL = `${ process . env . GITHUB_ACTOR_ID } +${ process . env . GITHUB_ACTOR } @users.noreply.github.com` ;
31
31
} else {
32
32
[ GIT_AUTHOR_NAME , GIT_AUTHOR_EMAIL ] = core
33
33
. getInput ( "commit-author" )
34
- . match ( / ^ \s + ( .+ ) \s + < ( .+ ) > \s + $ / )
34
+ . match ( / ^ \s * ( .+ ) \s + < ( .+ ) > \s * $ / )
35
35
. slice ( 1 ) ;
36
36
}
37
37
} else {
@@ -45,20 +45,20 @@ if (core.getInput("commit-committer")) {
45
45
assert . equal ( core . getInput ( "commit-committer-name" ) , "" ) ;
46
46
assert . equal ( core . getInput ( "commit-committer-email" ) , "" ) ;
47
47
if (
48
- / ^ \s + @ ? g i t h u b [ - _ ] ? a c t i o n s (?: \[ b o t \] ) ? \s + $ / . test (
48
+ / ^ \s * @ ? g i t h u b [ - _ ] ? a c t i o n s (?: \[ b o t \] ) ? \s * $ / . test (
49
49
core . getInput ( "commit-committer" )
50
50
)
51
51
) {
52
52
GIT_COMMITTER_NAME = "github-actions[bot]" ;
53
53
GIT_COMMITTER_EMAIL =
54
54
"41898282+github-actions[bot]@users.noreply.github.com" ;
55
- } else if ( / ^ \s + @ ? m e \s + $ / . test ( core . getInput ( "commit-committer" ) ) ) {
55
+ } else if ( / ^ \s * @ ? m e \s * $ / . test ( core . getInput ( "commit-committer" ) ) ) {
56
56
GIT_COMMITTER_NAME = process . env . GITHUB_ACTOR ;
57
57
GIT_COMMITTER_EMAIL = `${ process . env . GITHUB_ACTOR_ID } +${ process . env . GITHUB_ACTOR } @users.noreply.github.com` ;
58
58
} else {
59
59
[ GIT_COMMITTER_NAME , GIT_COMMITTER_EMAIL ] = core
60
60
. getInput ( "commit-committer" )
61
- . match ( / ^ \s + ( .+ ) \s + < ( .+ ) > \s + $ / )
61
+ . match ( / ^ \s * ( .+ ) \s + < ( .+ ) > \s * $ / )
62
62
. slice ( 1 ) ;
63
63
}
64
64
} else {
0 commit comments