(filename)
| 5465 | // If filename is a base64 data URI, parses and returns data (Buffer on node, |
| 5466 | // Uint8Array otherwise). If filename is not a base64 data URI, returns undefined. |
| 5467 | function tryParseAsDataURI(filename) { |
| 5468 | if (!isDataURI(filename)) { |
| 5469 | return; |
| 5470 | } |
| 5471 | |
| 5472 | return intArrayFromBase64(filename.slice(dataURIPrefix.length)); |
| 5473 | } |
| 5474 | |
| 5475 | |
| 5476 |
no test coverage detected
searching dependent graphs…