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('.').pop()
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turtb",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "binary for turtledb projects",
5
5
  "repository": "git@github.com:dtudury/turtb.git",
6
6
  "author": "David Tudury <david.tudury@gmail.com>",