synapse-react-client
Version:
[](https://travis-ci.com/Sage-Bionetworks/Synapse-React-Client) [](https://badge.fury.io/js/synaps
16 lines (15 loc) • 388 B
TypeScript
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;