UNPKG

synapse-react-client

Version:

[![Build Status](https://travis-ci.com/Sage-Bionetworks/Synapse-React-Client.svg?branch=main)](https://travis-ci.com/Sage-Bionetworks/Synapse-React-Client) [![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synaps

16 lines (15 loc) 388 B
export declare const DOI_REGEX: RegExp; /** * Checks for a Synapse ID, with or without a version number. * Captures the synId and version number into capture groups. * * Usage examples: * > const result = 'syn123.9'.match(SYNAPSE_ENTITY_ID_REGEX) * > result[0] * 'syn123.9' * > result[1] * 'syn123' * > result[2] * '9' */ export declare const SYNAPSE_ENTITY_ID_REGEX: RegExp;