Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* check each "word" (space separated) */
- while (1)
- {
- switch (po[0])
- {
- case 0:
- case ' ':
- wlen = po - start;
- if (wlen > 2)
- {
- if (url_check_word (start, wlen) == WORD_URL)
- {
- url_add (start, wlen);
- }
- }
- if (po[0] == 0)
- return;
- po++;
- start = po;
- break;
- // i added this
- case ' ':
- wlen = po - start;
- if (wlen > 2)
- {
- if (url_check_word (start, wlen) == WORD_URL)
- {
- url_add (start, wlen);
- }
- }
- if (po[0] == 0)
- return;
- po++;
- start = po;
- break;
- default:
- po++;
- }
- }
Add Comment
Please, Sign In to add comment