Files
freeCodeCamp/client/src/utils/index.js
2019-01-16 13:48:38 +00:00

7 lines
280 B
JavaScript

// These regex are not for validation, it is purely to see
// if we are looking at something like what we want to validate
// before we try to validate
export const maybeEmailRE = /.*@.*\.\w\w/;
export const maybeUrlRE = /https?:\/\/.*\..*/;
export const hasProtocolRE = /^http/;