pl-api: Detect iceshrimp.net
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
fd15332d6a
commit
f13a7649e3
1 changed files with 10 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue