mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 04:42:55 +08:00
DEV: Export imageNameFromFileName
This commit is contained in:
parent
78d67f34f9
commit
34ccd9ecbb
|
@ -6,7 +6,7 @@ function isGUID(value) {
|
|||
);
|
||||
}
|
||||
|
||||
function imageNameFromFileName(fileName) {
|
||||
export function imageNameFromFileName(fileName) {
|
||||
let name = fileName.substr(0, fileName.lastIndexOf("."));
|
||||
|
||||
if (isAppleDevice() && isGUID(name)) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user