Some small tidying up (#9149)

* Remove stale comment

* Fix typing

* Install katex type definitions
This commit is contained in:
Michael Telatynski 2022-08-09 12:55:49 +01:00 committed by GitHub
parent eb2e61e9cf
commit 5fbeb20df8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 3 deletions

View file

@ -130,8 +130,8 @@ function onAliasClick(event: MouseEvent, roomAlias: string) {
});
}
const escapeRegExp = function(string): string {
return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
const escapeRegExp = function(s: string): string {
return s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
};
// Recognise URLs from both our local and official Element deployments.