Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

Commit

Permalink
comment for base64 regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Lee committed Nov 18, 2019
1 parent 3688187 commit ecd2852
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/examples/image_carousel/imageViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import React from 'react';
import { Carousel } from 'react-responsive-carousel';

const URLREGEX = new RegExp("((http|https)(:\/\/))?([a-zA-Z0-9]+[.]{1}){2}[a-zA-Z0-9]+(\/{1}[a-zA-Z0-9]+)*\/?", "igm");
// Regular expression to check formal correctness of base64 encoded strings
// https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/atob
const b64re = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/;

const DOTS_THRESHOLD = 15;
Expand Down

0 comments on commit ecd2852

Please sign in to comment.