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 18 19 20 | 14x 2x 2x 14x 1x 1x | /**
* @param ref /c/demo/cenik/2.json
* @return string 2
*/
export function parseFlexiBeeId(ref: string): string {
const res = /\/(?<id>\d+)\.json/.exec(ref);
return res?.groups?.id ?? '';
}
/**
* @param ref /c/demo/cenik/2.json
* @return string cenik/2.json
*/
export function parseFlexiBeeUri(ref: string): string {
const res = /(?<uri>[^/]+\/\d+.json)/.exec(ref);
return res?.groups?.uri ?? '';
}
|