(input)
| 185 | * @returns {ParsedSource[]} parsed icon-uri |
| 186 | */ |
| 187 | const parseMsapplicationTask = (input) => { |
| 188 | const len = input.length; |
| 189 | let pos = 0; |
| 190 | while (pos < len) { |
| 191 | let sep = input.indexOf(";", pos); |
| 192 | if (sep === -1) sep = len; |
| 193 | const eq = input.indexOf("=", pos); |
| 194 | if (eq !== -1 && eq < sep) { |
| 195 | const key = input.slice(pos, eq).trim().toLowerCase(); |
| 196 | if (key === "icon-uri") { |
| 197 | let start = eq + 1; |
| 198 | let end = sep; |
| 199 | while (start < end && isASCIIWhitespace(input.charCodeAt(start))) { |
| 200 | start++; |
| 201 | } |
| 202 | while (end > start && isASCIIWhitespace(input.charCodeAt(end - 1))) { |
| 203 | end--; |
| 204 | } |
| 205 | if (start === end) return []; |
| 206 | return [[input.slice(start, end), start, end]]; |
| 207 | } |
| 208 | } |
| 209 | pos = sep + 1; |
| 210 | } |
| 211 | return []; |
| 212 | }; |
| 213 | |
| 214 | /** |
| 215 | * Extracts `url(...)` references from a CSS value (an SVG presentation |
nothing calls this directly
no test coverage detected