Skip to content

Commit

Permalink
Merge pull request #32 from c4e/feature/add-dash-regexp
Browse files Browse the repository at this point in the history
feat: allow dash on rule name
  • Loading branch information
c4e authored Dec 14, 2021
2 parents 294366e + 3536fc6 commit b110b0f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class ServerlessPlugin {
const rulesTemplate = targetAccounts.map(account => {
const eventBusName = account.eventBusName;
const ruleName = account.ruleName || `EventRuleCase${account.targetAccountId}`;
const alphaNumericRuleName = ruleName.replace(/[^a-z0-9+]+/gi, '');
const alphaNumericRuleName = ruleName.replace(/[^a-z0-9+-]+/gi, '');
const region = account.region || 'eu-central-1';

return {
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "serverless-events-cross-organization",
"version": "v1.0.15-beta",
"version": "v1.0.16-beta",
"description": "Add roles, rules, policies to send and receive events cross organization",
"main": "lib/index.js",
"scripts": {
Expand Down

0 comments on commit b110b0f

Please sign in to comment.