#39 Add config for URL tile announcement scope

オープン
8 年 前fr33domlover によって開かれました · 1 コメント
fr33domlover8 年 前 にコメントしました

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.
smichel176 年 前 にコメントしました

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 参加者
読み込み中…
キャンセル
保存
まだコンテンツがありません