MCPcopy Create free account
hub / github.com/react-native-segmented-control/segmented-control / isBase64

Function isBase64

js/SegmentedControlTab.js:35–39  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

33|}>;
34
35function isBase64(str) {
36 const regex =
37 /^data:image\/(?:gif|png|jpeg|bmp|webp)(?:;charset=utf-8)?;base64,(?:[A-Za-z0-9]|[+/])+={0,2}/;
38 return str && regex.test(str);
39}
40
41export const SegmentedControlTab = ({
42 onSelect,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…