From a8ce1fb561c1883b0ca7a437acf31cd6d7888e0e Mon Sep 17 00:00:00 2001 From: Valeriy Gerasymenko Date: Wed, 5 Sep 2018 20:44:03 +0300 Subject: [PATCH] fix fileName for android --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 79bf006..12aaa24 100644 --- a/index.js +++ b/index.js @@ -39,7 +39,7 @@ const FSStorage = ( const baseFolder = resolvePath(location, folder); const pathForKey = (key: string) => - resolvePath(baseFolder, encodeURIComponent(key)); + resolvePath(baseFolder, key.replace(/[;\\/:*?\"<>|&']/gi,'_')); const setItem = ( key: string,