(str)
| 2012 | } |
| 2013 | }; |
| 2014 | export 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 |
| 2020 | const forceBreakLongWord = (word, width, font, fontSize) => { |
| 2021 | const parts = []; |
no outgoing calls
no test coverage detected