Skip to content

Commit 3aedafa

Browse files
authored
fix: string concatenation (#8966)
1 parent bef54f6 commit 3aedafa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/adapter-netlify/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ async function generate_lambda_functions({ builder, publish, split }) {
205205

206206
const pattern = `/${parts.join('/')}`;
207207
const name =
208-
FUNCTION_PREFIX + parts.join('-').replace(/[:.]/g, '_').replace('*', '__rest') || 'index';
208+
FUNCTION_PREFIX + (parts.join('-').replace(/[:.]/g, '_').replace('*', '__rest') || 'index');
209209

210210
// skip routes with identical patterns, they were already folded into another function
211211
if (seen.has(pattern)) continue;

0 commit comments

Comments
 (0)