Skip to content

Commit 08362c1

Browse files
authored
Error when setting language config for "editor"
1 parent 2e641c3 commit 08362c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Utilities/Helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,6 @@ public static function isJavascript(string|array|object|null $value, string $key
389389
/** @var array $callbacks */
390390
$callbacks = config('datatables.callback', ['$', '$.', 'function']);
391391

392-
return Str::startsWith(trim($value), $callbacks) || Str::contains($key, ['editor', 'minDate', 'maxDate']);
392+
return Str::startsWith(trim($value), $callbacks) || Str::startsWith($key, ['editor', 'minDate', 'maxDate']);
393393
}
394394
}

0 commit comments

Comments
 (0)