turtb 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,7 +6,7 @@ export const JSON_FILE = 'json file'
|
|
|
6
6
|
export const BINARY_FILE = 'binary file'
|
|
7
7
|
|
|
8
8
|
export const pathToType = path => {
|
|
9
|
-
const extension = path.split(
|
|
9
|
+
const extension = path.split(/\b/).pop()
|
|
10
10
|
if (textFileExtensions.includes(extension)) return TEXT_FILE
|
|
11
11
|
if (jsonFileExtensions.includes(extension)) return JSON_FILE
|
|
12
12
|
return BINARY_FILE
|