Skip to content

Commit 2cc0e76

Browse files
authored
Merge pull request #2983 from OzanKurt/patch-6
fix: Error when setting language config for "editor"
2 parents 2e641c3 + b23603c commit 2cc0e76

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Utilities/Helper.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,10 @@ public static function isJavascript(string|array|object|null $value, string $key
388388

389389
/** @var array $callbacks */
390390
$callbacks = config('datatables.callback', ['$', '$.', 'function']);
391+
392+
if (Str::startsWith($key, 'language.')) {
393+
return false;
394+
}
391395

392396
return Str::startsWith(trim($value), $callbacks) || Str::contains($key, ['editor', 'minDate', 'maxDate']);
393397
}

0 commit comments

Comments
 (0)