diff --git a/gui/app/utils/encoding.js b/gui/app/utils/encoding.js index e7e6a87c..20745145 100644 --- a/gui/app/utils/encoding.js +++ b/gui/app/utils/encoding.js @@ -1,11 +1,11 @@ // Copyright 2016 Documize Inc. . All rights reserved. // -// This software (Documize Community Edition) is licensed under +// This software (Documize Community Edition) is licensed under // GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html // // You can operate outside the AGPL restrictions by purchasing // Documize Enterprise Edition and obtaining a commercial license -// by contacting . +// by contacting . // // https://documize.com @@ -41,7 +41,7 @@ var Base64 = { var n, r, i; var s, o, u, a; var f = 0; - e = e.replace(/[^A-Za-z0-9\+\/\=]/g, ""); + e = e.replace(/[^A-Za-z0-9+/=]/g, ""); while (f < e.length) { s = this._keyStr.indexOf(e.charAt(f++)); o = this._keyStr.indexOf(e.charAt(f++)); @@ -107,4 +107,4 @@ var Base64 = { export default { Base64 -}; \ No newline at end of file +}; diff --git a/gui/tests/.eslintrc.js b/gui/tests/.eslintrc.js index fbf25552..2532be22 100644 --- a/gui/tests/.eslintrc.js +++ b/gui/tests/.eslintrc.js @@ -1,5 +1,36 @@ module.exports = { - env: { - embertest: true - } + root: true, + parserOptions: { + ecmaVersion: 2017, + sourceType: 'module' + }, + extends: 'eslint:recommended', + env: { + browser: true, + jquery: true, + qunit: true, + embertest: true + }, + rules: { + }, + globals: { + "$": true, + "is": true, + "_": true, + "tinymce": true, + "CodeMirror": true, + "Drop": true, + "Mousetrap": true, + "Sortable": true, + "moment": true, + "Dropzone": true, + "Tooltip": true, + "server": true, + "authenticateUser": true, + "stubAudit": true, + "stubUserNotification": true, + "userLogin": true, + "Keycloak": true, + "slug": true + } };