We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 39ab671 + 0ecc0a0 commit cd98fd7Copy full SHA for cd98fd7
1 file changed
index.js
@@ -6,8 +6,11 @@ const port = 3000
6
7
const env_list = process.env
8
for(var i in env_list) {
9
- if(i.includes('PAT_')){
10
- org_pat_map[i.replace('PAT_', '')] = env_list[i]
+ if(i.startsWith('PAT_')){
+ const pat_label = i.replace('PAT_', '')
11
+ if (pat_label) {
12
+ org_pat_map[pat_label] = env_list[i].trim()
13
+ }
14
}
15
16
0 commit comments