(pathString: string)
| 349 | } |
| 350 | |
| 351 | function tokenizePathString(pathString: string) { |
| 352 | const numbers: string[] = []; |
| 353 | pathString.split("Z").forEach((path) => |
| 354 | path.split(/[A-Z]/).forEach((token) => |
| 355 | token.split(",").forEach((numberString) => |
| 356 | numberString.split(" ").forEach((num) => { |
| 357 | if (num !== "") { |
| 358 | numbers.push(num); |
| 359 | } |
| 360 | })))); |
| 361 | return numbers; |
| 362 | } |
| 363 | |
| 364 | export type RGB = { |
| 365 | red: number, |
no test coverage detected