From b5e9bde9cab0cf526e7a83c3670a8ee36d90a426 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20N=C3=BCrnberger?= Date: Sun, 2 Feb 2020 21:14:00 +0100 Subject: [PATCH] go back to split to ensure a comma must be used as a delimiter --- src/js/dom/directive.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/dom/directive.js b/src/js/dom/directive.js index 7afb6d169c..572c491c5a 100644 --- a/src/js/dom/directive.js +++ b/src/js/dom/directive.js @@ -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 }