Skip to content

Commit b23603c

Browse files
authored
Update Helper.php
1 parent 08362c1 commit b23603c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Utilities/Helper.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,11 @@ 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

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

0 commit comments

Comments
 (0)