All files / src cloud-urls.ts

100% Statements 18/18
100% Branches 0/0
100% Functions 0/0
100% Lines 18/18

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 181x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x
/**
 * Matches a Keyman keyboard resource, based on the permanent home page for the
 * keyboard on keyman.com, `https://keyman.com/keyboards/<id>`
 */
export const KEYMANCOM_CLOUD_URI = /^(?:http(?:s)?:\/\/)?keyman\.com\/keyboards\/(?<id>[a-z0-9_.-]+)/i;
 
/**
 * Matches a `cloud:<id>` URI for a Keyman resource (e.g. keyboard or lexical
 * model)
 */
export const CLOUD_URI = /^cloud:(?<id>.+)$/i;
 
 
export interface CloudUriRegexMatchArray extends RegExpMatchArray {
  groups?: {
    id?: string;
  }
}