MCPcopy Index your code
hub / github.com/OpenSignLabs/OpenSign / isBase64

Function isBase64

apps/OpenSign/src/constant/Utils.js:2014–2018  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

2012 }
2013};
2014export const isBase64 = (str) => {
2015 const base64Pattern =
2016 /^data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+)?;base64,[A-Za-z0-9+/=]+$/;
2017 return base64Pattern.test(str);
2018};
2019// Break a long word into smaller parts character-by-character
2020const forceBreakLongWord = (word, width, font, fontSize) => {
2021 const parts = [];

Callers 5

ImageComponentFunction · 0.90
loadImageFunction · 0.90
embedWidgetsToDocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected