Skip to content

Commit 22581a0

Browse files
author
Aleksander Dikanski
committed
replace equals with startsWith
1 parent e12d157 commit 22581a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class Utils {
111111
* @returns {string}
112112
*/
113113
static getFunctionVersionName(versions, functionName) {
114-
return _.find(_.keys(versions), version => version === `${functionName}LambdaVersion`);
114+
return _.find(_.keys(versions), version => _.startsWith(version, `${functionName}LambdaVersion`));
115115
}
116116

117117
/**
@@ -120,7 +120,7 @@ class Utils {
120120
* @returns {string}
121121
*/
122122
static getAliasVersionName(aliases, functionName) {
123-
return _.find(_.keys(aliases), alias => alias === `${functionName}Alias`);
123+
return _.find(_.keys(aliases), alias => _.startsWith(alias, `${functionName}Alias`));
124124
}
125125
}
126126

0 commit comments

Comments
 (0)