From 679d3b8e85a24bfdb879793a84bb0cca13e54cea Mon Sep 17 00:00:00 2001 From: Dmitry R Date: Fri, 6 Dec 2024 07:10:27 -0500 Subject: [PATCH] luci-app-filemanager: fixed negative time zone parsing Signed-off-by: Dmitry R --- .../htdocs/luci-static/resources/view/system/filemanager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/luci-app-filemanager/htdocs/luci-static/resources/view/system/filemanager.js b/applications/luci-app-filemanager/htdocs/luci-static/resources/view/system/filemanager.js index e2362ed4113..9e5066ddec6 100644 --- a/applications/luci-app-filemanager/htdocs/luci-static/resources/view/system/filemanager.js +++ b/applications/luci-app-filemanager/htdocs/luci-static/resources/view/system/filemanager.js @@ -298,7 +298,7 @@ function getFileList(path) { lines.forEach(function(line) { if (line.startsWith('total') || !line.trim()) return; // Parse the output line from 'ls' command - var parts = line.match(/^([\-dl])[rwx\-]{2}[rwx\-Ss]{1}[rwx\-]{2}[rwx\-Ss]{1}[rwx\-]{2}[rwx\-Tt]{1}\s+\d+\s+(\S+)\s+(\S+)\s+(\d+)\s+([\d\-]+\s+[\d\:\.]{8,12}\s+\+\d{4})\s+(.+)$/); + var parts = line.match(/^([\-dl])[rwx\-]{2}[rwx\-Ss]{1}[rwx\-]{2}[rwx\-Ss]{1}[rwx\-]{2}[rwx\-Tt]{1}\s+\d+\s+(\S+)\s+(\S+)\s+(\d+)\s+([\d\-]+\s+[\d\:\.]{8,12}\s+[+-]\d{4})\s+(.+)$/); if (!parts || parts.length < 7) { console.warn('Failed to parse line:', line); return;