mirror of
https://github.com/bellingcat/datasheet-server.git
synced 2026-06-12 21:38:32 +03:00
rm getFileExt
This commit is contained in:
@@ -2,7 +2,6 @@ import R from 'ramda'
|
|||||||
import { createHash } from 'crypto'
|
import { createHash } from 'crypto'
|
||||||
import { buildDesaturated } from './blueprinters'
|
import { buildDesaturated } from './blueprinters'
|
||||||
import {
|
import {
|
||||||
getFileExt,
|
|
||||||
fmtName,
|
fmtName,
|
||||||
fmtBlueprinterTitles,
|
fmtBlueprinterTitles,
|
||||||
isFunction
|
isFunction
|
||||||
|
|||||||
@@ -14,11 +14,6 @@ function camelize (str) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getFileExt (str) {
|
|
||||||
const re = /(?:\.([^.]+))?$/
|
|
||||||
return re.exec(str)[1]
|
|
||||||
}
|
|
||||||
|
|
||||||
export const fmtObj = R.curry(
|
export const fmtObj = R.curry(
|
||||||
(
|
(
|
||||||
columnNames,
|
columnNames,
|
||||||
|
|||||||
Reference in New Issue
Block a user