8000 escape disallowed characters by seoker · Pull Request #261 · motdotla/node-lambda · GitHub
[go: up one dir, main page]

Skip to content

escape disallowed characters#261

Closed
seoker wants to merge 1 commit intomotdotla:masterfrom
seoker:escape_function_name
Closed

escape disallowed characters#261
seoker wants to merge 1 commit intomotdotla:masterfrom
seoker:escape_function_name

Conversation

@seoker
Copy link
@seoker seoker commented May 4, 2017

When I was trying -L argument, I found that the deployment will be rejected if I assign the lambda version with v1.0.0, and then I figure out the version will be appended to the function name which makes the function name being illegal.

As AWS Lambda mentioned in the CreateFunction API document, function name only allows [a-zA-Z0-9-_]+, any disallowed character will be replaced with _ by this PR.

@seoker
Copy link
Author
seoker commented May 5, 2017

Sorry I have no time to figure out and write the tests, someone could help?

@abetomo
Copy link
Contributor
abetomo commented May 5, 2017

I will write a test if it is okay with me.

@DeviaVir
Copy link
Collaborator
DeviaVir commented May 5, 2017

merged in with #263

@DeviaVir DeviaVir closed this May 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0