Files
freeCodeCamp/client/src/utils/index.ts
Eric Cheng 1f880a552d fix(docs): modified grammar and phrasing in docs and comments (#43682)
* docs: fixed minor typos in how-to-open-a-pull-request.md

* docs: grammar fixes in FAQ.md

* refactor: streamlined comments in multiple TS files

* fix: linting issues
2021-10-02 23:43:14 +01:00

9 lines
286 B
TypeScript

/*
* This regex is 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/;