• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ringcentral / ringcentral-js-widgets / 4878562030

pending completion
4878562030

push

github

GitHub
sync features and bugfixs from e3d1ac7 (#1714)

1724 of 6102 branches covered (28.25%)

Branch coverage included in aggregate %.

751 of 2684 new or added lines in 97 files covered. (27.98%)

457 existing lines in 34 files now uncovered.

3248 of 8911 relevant lines covered (36.45%)

18.43 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

71.43
/packages/utils/src/utils/base64Handler.ts
1
const REGEXP_BASE64_DATA_URL =
2
  /^(data:\w+\/[a-zA-Z+\-.]+;base64,)?(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/i;
28✔
3

4
export function isBase64DataUrl(value: string) {
5
  return REGEXP_BASE64_DATA_URL.test(value);
6✔
6
}
7

8
export function decodeBase64DataUrl(dataURL: string) {
9
  if (isBase64DataUrl(dataURL)) {
3!
10
    return atob(dataURL.split('base64,')[1]);
3✔
11
  }
12

NEW
13
  return '';
×
14
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc