(value?: string)
| 108 | } |
| 109 | |
| 110 | function getStarterTelemetryProperties(value?: string) { |
| 111 | if (!value) { |
| 112 | return {} |
| 113 | } |
| 114 | |
| 115 | if (isRemoteUrl(value)) { |
| 116 | return { |
| 117 | starter_kind: 'remote_url', |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | if (isLocalPath(value)) { |
| 122 | return { |
| 123 | starter_kind: 'local_path', |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | return { |
| 128 | starter_id: sanitizeId(value), |
| 129 | starter_kind: 'built_in', |
| 130 | } |
| 131 | } |
| 132 | |
| 133 | function getLengthBucket(value: string) { |
| 134 | const length = value.trim().length |
no test coverage detected