Skip to content

Commit

Permalink
Upgrade limax to 2.0.0 (RocketChat#16020)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigok authored Dec 19, 2019
1 parent c93e9d1 commit fcc09a6
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion app/ldap/server/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function slug(text) {
if (settings.get('UTF8_Names_Slugify') !== true) {
return text;
}
text = limax(text, { replacement: '.', separateNumbers: false });
text = limax(text, { replacement: '.' });
return text.replace(/[^0-9a-z-_.]/g, '');
}

Expand Down
2 changes: 1 addition & 1 deletion app/lib/server/functions/getUsernameSuggestion.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Users } from '../../../models';
import { settings } from '../../../settings';

function slug(text) {
return limax(text, { replacement: '.', separateNumbers: false }).replace(/[^0-9a-z-_.]/g, '');
return limax(text, { replacement: '.' }).replace(/[^0-9a-z-_.]/g, '');
}

function usernameIsAvaliable(username) {
Expand Down
30 changes: 15 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
"ldapjs": "^1.0.2",
"less": "https://github.com/meteor/less.js/tarball/8130849eb3d7f0ecf0ca8d0af7c4207b0442e3f6",
"less-plugin-autoprefixer": "^2.1.0",
"limax": "^1.7.0",
"limax": "^2.0.0",
"localforage": "^1.7.3",
"lodash.clonedeep": "^4.5.0",
"lodash.property": "^4.4.2",
Expand Down

0 comments on commit fcc09a6

Please sign in to comment.