Skip to content

Commit ae60e68

Browse files
committed
Use startsWith: More efficient and it looks-up only beginning of the string
1 parent 3fcbead commit ae60e68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const port = 3000
66

77
const env_list = process.env
88
for(var i in env_list) {
9-
if(i.includes('PAT_')){
9+
if(i.startsWith('PAT_')){
1010
org_pat_map[i.replace('PAT_', '')] = env_list[i].trim()
1111
}
1212
}

0 commit comments

Comments
 (0)