From e05362959f8d9abb5016914693dac01e564354df Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 19 Feb 2020 12:42:54 +0100 Subject: Copy isFileNameValid function, so the filepicker works without the files app Signed-off-by: Joas Schilling --- apps/files/js/files.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/files/js/files.js') diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 395b2a53c10..1438fc504e6 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -130,6 +130,8 @@ * @return true if the file name is valid. * Throws a string exception with an error message if * the file name is not valid + * + * NOTE: This function is duplicated in the filepicker inside core/src/OC/dialogs.js */ isFileNameValid: function (name) { var trimmedName = name.trim(); -- cgit v1.2.3