Skip to content

Commit

Permalink
feat: actions containg '.' will as name and method
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Feb 1, 2024
1 parent 51e5582 commit 7f9cf9c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,13 @@ function runAction(stagedActions, index, element) {
const currentAction = stagedActions[index];
if (!currentAction) return

const actionName = currentAction.name
let actionName = currentAction.name
if (actionName.includes('.')) {
let name = actionName.split('.')[0]
currentAction.method = actionName.substring(name.length + 1)
currentAction.name = actionName = name
}

const action = actions[actionName];

if (action) {
Expand Down

0 comments on commit 7f9cf9c

Please sign in to comment.