WebUI: enforce string quotes coding style

This commit is contained in:
Chocobo1
2024-05-27 22:50:17 +08:00
parent 6d073771ca
commit cb90b6769c
58 changed files with 3522 additions and 3514 deletions

View File

@@ -26,7 +26,7 @@
* exception statement from your version.
*/
'use strict';
"use strict";
// This file is the JavaScript implementation of base/utils/fs.cpp
@@ -44,15 +44,15 @@ window.qBittorrent.Filesystem = (function() {
};
};
const PathSeparator = '/';
const PathSeparator = "/";
/**
* Returns the file extension part of a file name.
*/
const fileExtension = function(filename) {
const pointIndex = filename.lastIndexOf('.');
const pointIndex = filename.lastIndexOf(".");
if (pointIndex === -1)
return '';
return "";
return filename.substring(pointIndex + 1);
};
@@ -66,7 +66,7 @@ window.qBittorrent.Filesystem = (function() {
const folderName = function(filepath) {
const slashIndex = filepath.lastIndexOf(PathSeparator);
if (slashIndex === -1)
return '';
return "";
return filepath.substring(0, slashIndex);
};