mirror of
https://github.com/tiennm99/is-a-good-dev.git
synced 2026-10-03 05:20:12 +00:00
Update utils.js
This commit is contained in:
1 parent
8808f1b60d
commit
159f9b7f80
1 file changed
+2
-2
+2
-2
@@ -6,7 +6,7 @@ function getFiles(path) {
|
||||
// Get all files in path: returns array
|
||||
const allFiles = fs.readdirSync(path);
|
||||
|
||||
return allFiles
|
||||
return allFiles;
|
||||
}
|
||||
|
||||
function getFileExtension(filename) {
|
||||
@@ -16,7 +16,7 @@ function getFileExtension(filename) {
|
||||
|
||||
function stripExt(filename) {
|
||||
// Remove file extension
|
||||
return filename.substr(0, filename.lastIndexOf('.'))
|
||||
return filename.substr(0, filename.lastIndexOf('.'));
|
||||
}
|
||||
|
||||
function checkIfValidIP(str) {
|
||||
|
||||
Reference in new issue
Block a user