Skip to content

Commit 5f4133f

Browse files
authored
Merge pull request #447 from jimpudar/master
Correct imprecise regex in moveModuleUp function (fixes #444)
2 parents 91f36fb + a4bdbbb commit 5f4133f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/inject.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function moveModuleUp(source, target, module) {
6767
file =>
6868
file.startsWith(module + '/') ||
6969
file.startsWith('serverless_sdk/') ||
70-
file.match(/s_.*\.py/) !== null
70+
file.match(/^s_.*\.py/) !== null
7171
)
7272
)
7373
.map(srcZipObj =>

0 commit comments

Comments
 (0)