From abacfd84dad4334e26b44b367127d45fdaf3fde6 Mon Sep 17 00:00:00 2001 From: Thomas Müller Date: Thu, 19 Feb 2015 11:23:01 +0100 Subject: fixing js unit tests --- apps/files/js/files.js | 8 -------- 1 file changed, 8 deletions(-) (limited to 'apps/files/js') diff --git a/apps/files/js/files.js b/apps/files/js/files.js index ddb2a80259c..e63c3cad52e 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -102,14 +102,6 @@ } else if (trimmedName.length === 0) { throw t('files', 'File name cannot be empty.'); } - // check for invalid characters - //var invalidCharacters = - // ['\\', '/', '<', '>', ':', '"', '|', '?', '*', '\n']; - //for (var i = 0; i < invalidCharacters.length; i++) { - // if (trimmedName.indexOf(invalidCharacters[i]) !== -1) { - // throw t('files', "Invalid name, '\\', '/', '<', '>', ':', '\"', '|', '?' and '*' are not allowed."); - // } - //} return true; }, displayStorageWarnings: function() { -- cgit v1.2.3