MCPcopy Create free account
hub / github.com/NativeScript/firebase / isRegion

Function isRegion

packages/firebase-functions/index.ios.ts:220–223  ·  view source on GitHub ↗

Check whether a regionOrCustomDomain string is a Region for the http trigger, such as “us-central1”. @param regionOrCustomDomain(string): Text to parse @return boolean: TRUE if a Region; FALSE if not

(regionOrCustomDomain: string)

Source from the content-addressed store, hash-verified

218 @return boolean: TRUE if a Region; FALSE if not
219 */
220function isRegion(regionOrCustomDomain: string): boolean {
221 const elems = regionOrCustomDomain.split('.');
222 return elems.length === 1 ? true : false;
223}
224/**
225 Check whether a regionOrCustomDomain string is a Custom Domain for the http trigger, such as “https://mydomain.com”
226 @param regionOrCustomDomain(string): Text to parse

Callers 2

constructorMethod · 0.85
isCustomDomainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected