From f13a7649e330c1d5cbb536d992676cc97f80a108 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Wed, 27 Nov 2024 10:17:49 +0100 Subject: [PATCH] pl-api: Detect iceshrimp.net MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- packages/pl-api/lib/features.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/pl-api/lib/features.ts b/packages/pl-api/lib/features.ts index 3313e7d29..7c97b291d 100644 --- a/packages/pl-api/lib/features.ts +++ b/packages/pl-api/lib/features.ts @@ -47,6 +47,14 @@ const GOTOSOCIAL = 'GoToSocial'; */ const ICESHRIMP = 'Iceshrimp'; +/** + * Iceshrimp.NET, a decentralized and federated social networking service, powered by .NET. + * + * @category Software + * @see {@link https://iceshrimp.dev/} + */ +const ICESHRIMP_NET = 'Iceshrimp.NET'; + /** * Mastodon, the software upon which this is all based. * @@ -1285,7 +1293,7 @@ interface Backend { /** Get information about the software from its version string */ const parseVersion = (version: string): Backend => { - const regex = /^([\w+.-]*)(?: \(compatible; ([\w]*) (.*)\))?$/; + const regex = /^([\w+.-]*)(?: \(compatible; ([\w.]*) (.*)\))?$/; const match = regex.exec(version.replace('/', ' ')); const semverString = match && (match[3] || match[1]); @@ -1318,6 +1326,7 @@ export { FRIENDICA, GOTOSOCIAL, ICESHRIMP, + ICESHRIMP_NET, MASTODON, MITRA, PIXELFED,