MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / isDataURI

Function isDataURI

packages/core/utils/common.ts:112–120  ·  view source on GitHub ↗
(uri: string)

Source from the content-addressed store, hash-verified

110}
111
112export function isDataURI(uri: string): boolean {
113 if (!types.isString(uri)) {
114 return false;
115 }
116
117 const firstSegment = uri.trim().split(',')[0];
118
119 return firstSegment && firstSegment.indexOf('data:') === 0 && firstSegment.indexOf('base64') >= 0;
120}
121
122export function mergeSort(arr, compareFunc) {
123 if (arr.length < 2) {

Callers 4

createUIImageFromURIFunction · 0.90
refreshBorderDrawableFunction · 0.90

Calls 1

indexOfMethod · 0.80

Tested by

no test coverage detected