#39 Add config for URL tile announcement scope

오픈
fr33domlover8 년 전을 오픈 · 1개의 코멘트
fr33domlover 코멘트됨, 8 년 전

Instead of simple on/off support these:

  1. No title annoucenements
  2. Take the entire message as the URL
  3. Take the first word as the URL
  4. Try all words as URLs (announce just the first, or all of them?)

In case 4, possibly handle cases where the URL is followed by non-whitespace, for example "hey jane, check out https://gnu.org, cool thing". Can a URL contain a comma as the last char? Is there a good way to strip those suffixes, at least common ones like comma? If yes, support it. If not, it's fine too, just a bonus.

Instead of simple on/off support these: 1. No title annoucenements 2. Take the entire message as the URL 3. Take the first word as the URL 4. Try all words as URLs (announce just the first, or all of them?) In case 4, possibly handle cases where the URL is followed by non-whitespace, for example "*hey jane, check out https://gnu.org, cool thing*". Can a URL contain a comma as the last char? Is there a good way to strip those suffixes, at least common ones like comma? If yes, support it. If not, it's fine too, just a bonus.
smichel17 코멘트됨, 6 년 전

You could make a GET to the url with the comma. If you get a 404, try without the comma. If it also 404's, announce a dead link.

You could make a GET to the url with the comma. If you get a 404, try without the comma. If it also 404's, announce a dead link.
로그인하여 이 대화에 참여
마일스톤 없음
담당자 없음
참여자 2명
로딩중...
취소
저장
아직 콘텐츠가 없습니다.