1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-08-07 21:23:00 +03:00

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
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.