Skip to content

Commit

Permalink
go back to split to ensure a comma must be used as a delimiter
Browse files Browse the repository at this point in the history
  • Loading branch information
nuernbergerA committed Feb 2, 2020
1 parent 7c8b1c5 commit b5e9bde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/dom/directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default class {
// This "$event" is for use inside the livewire event handler.
const $event = this.eventContext
method = methodAndParamString[1]
params = methodAndParamString[2].match(/((?:'[^']*')|\w*)/g).filter(Boolean).map(param => eval(param))
params = methodAndParamString[2].split(/ ?, ?(?=(?:[^']|'[^']*')*$)/).filter(Boolean).map(param => eval(param))
}

return { method, params }
Expand Down

0 comments on commit b5e9bde

Please sign in to comment.