mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Remove spaces from Cognito Pool Name
This commit is contained in:
parent
bc366d5f2e
commit
072e1155bd
@ -3,7 +3,7 @@
|
||||
const Lambda = require('aws-sdk/clients/lambda');
|
||||
|
||||
function getStatementId(functionName, userPoolName) {
|
||||
const normalizedUserPoolName = userPoolName.toLowerCase().replace(/[.:*]/g, '');
|
||||
const normalizedUserPoolName = userPoolName.toLowerCase().replace(/[.:*\s]/g, '');
|
||||
const id = `${functionName}-${normalizedUserPoolName}`;
|
||||
if (id.length < 100) {
|
||||
return id;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user