X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futils%2FConstants.ts;h=ee9d96d9d03c00fb920b0664086fdcdd406ca730;hb=b25b86842dc61b2a95f672dcf38992f7d63d6ec3;hp=74b88834e1b943742320f8956d4fabf1c4dbbd97;hpb=91ecff2da29c7d1930ab1e8d90d159ae7a8c722e;p=e-mobility-charging-stations-simulator.git diff --git a/src/utils/Constants.ts b/src/utils/Constants.ts index 74b88834..ee9d96d9 100644 --- a/src/utils/Constants.ts +++ b/src/utils/Constants.ts @@ -95,6 +95,10 @@ export default class Constants { static readonly CHARGING_STATION_ATG_INITIALIZATION_TIME = 1000; // Ms static readonly CHARGING_STATION_ATG_DEFAULT_STOP_AFTER_HOURS = 0.25; // Hours + // See https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string + static readonly SEMVER_REGEXP = + /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/; + static readonly DEFAULT_CIRCULAR_BUFFER_CAPACITY = Number.MAX_SAFE_INTEGER; static readonly DEFAULT_HASH_ALGORITHM = 'sha384';