ranger: preview more JS properly

This commit is contained in:
Alexander Bocken 2024-02-14 13:43:30 +01:00
parent bec8276729
commit 4e53b56e59
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8

View File

@ -294,7 +294,7 @@ handle_mime() {
exit 1;; exit 1;;
## Text ## Text
text/* | */xml) text/*|*/xml|application/javascript)
## Syntax highlight ## Syntax highlight
if [[ "$( stat --printf='%s' -- "${FILE_PATH}" )" -gt "${HIGHLIGHT_SIZE_MAX}" ]]; then if [[ "$( stat --printf='%s' -- "${FILE_PATH}" )" -gt "${HIGHLIGHT_SIZE_MAX}" ]]; then
exit 2 exit 2