fix replaceAll with replace as is not available on some JSC (#5801)

This commit is contained in:
Elias Nahum 2021-11-02 04:13:41 -03:00 committed by GitHub
parent e0d18f45bc
commit d502a83b74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -431,7 +431,7 @@ export default class List extends PureComponent {
case CategoryTypes.DIRECT_MESSAGES:
return CategoryTypes.DIRECT_MESSAGES.toLowerCase();
default:
return name.replaceAll(' ', '_').toLowerCase();
return name.replace(/ /g, '_').toLowerCase();
}
};