6de2455917
- Added GLOBAL_MARKETS_TITLE to all translation files - Updated footer with 12 markets (4 active + 8 upcoming) - Translated market section to: zh-cn, zh-tw, ja, ko, th, vi, id, ms, hi - Built and deployed to production - CloudFront invalidation: I3RTMXVFDJXWLG3SYX208OP1CC
14 lines
597 B
JavaScript
14 lines
597 B
JavaScript
import assertString from './util/assertString';
|
|
import multilineRegexp from './util/multilineRegex';
|
|
|
|
/**
|
|
* Regular Expression to match
|
|
* semantic versioning (SemVer)
|
|
* built from multi-line, multi-parts regexp
|
|
* Reference: https://semver.org/
|
|
*/
|
|
var semanticVersioningRegex = multilineRegexp(['^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)', '(?:-((?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*))*))', '?(?:\\+([0-9a-z-]+(?:\\.[0-9a-z-]+)*))?$'], 'i');
|
|
export default function isSemVer(str) {
|
|
assertString(str);
|
|
return semanticVersioningRegex.test(str);
|
|
} |