Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

Commit

Permalink
feat(url): 'www'-initiated URL extractor
Browse files Browse the repository at this point in the history
  • Loading branch information
jalemany1 committed Oct 18, 2017
1 parent 3d0115e commit c7a3ad1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/hypeJunction/Scraper/Extractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Extractor {

const REGEX_HASHTAG = '(#\w+)';

const REGEX_URL = '(h?[t|f]??tps*:\/\/[^\s\r\n\t<>"\'\)\(]+)';
const REGEX_URL = '((h?[t|f]??tps*:\/\/|www)[^\s\r\n\t<>"\'\)\(]+)';

const REGEX_EMAIL = '([\w\-\.]+@[^\s\r\n\t<>"\'\)\(]+\.+[0-9a-z]{2,})';

Expand Down

0 comments on commit c7a3ad1

Please sign in to comment.