Improve SORT_REGEX

This commit is contained in:
Michael Telatynski 2019-12-27 17:04:14 +00:00
parent ab12288979
commit f9e386adaa

View file

@ -32,8 +32,9 @@ const INITIAL_LOAD_NUM_MEMBERS = 30;
const INITIAL_LOAD_NUM_INVITED = 5; const INITIAL_LOAD_NUM_INVITED = 5;
const SHOW_MORE_INCREMENT = 100; const SHOW_MORE_INCREMENT = 100;
// Regex applied to member names before applying sort, to fuzzy it a little // Regex applied to filter our punctuation in member names before applying sort, to fuzzy it a little
const SORT_REGEX = /[.?!,;:\-()[\]{}'"&@#\\/+_=]+/g; // matches all ASCII punctuation: !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
const SORT_REGEX = /[\x21-\x2F\x3A-\x40\x5B-\x60\x7B-\x7E]+/g;
module.exports = createReactClass({ module.exports = createReactClass({
displayName: 'MemberList', displayName: 'MemberList',