Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix initial settings for thread title search (2021-04) #680

Merged

Conversation

ma8ma
Copy link
Collaborator

@ma8ma ma8ma commented Apr 24, 2021

Fixes #679

初期設定のスレタイ検索サイト https://ff5ch.syoboi.jp の検索結果が2021年4月中旬から変更されてスレッド抽出に失敗するようになりました。
そのためabout:config「スレタイ検索用のアドレス」と「スレタイ検索時にアドレスとスレタイを取得する正規表現」のデフォルト設定を更新します。

正規表現の説明

^(?=[^\t\n]+\t[^\t\n]+\t([^\t\n]+))([^\t\n]+)\t([^\t\n]+)
  • まず行頭^をマッチさせる
  • 次にlook ahead(?=...)を使って3列目をグループ1にキャプチャ
  • そのあと改めて行頭から1列目、2列目をグループ2、グループ3にキャプチャ

修正にあたり不具合報告をしていただきありがとうございました。
https://mao.5ch.net/test/read.cgi/linux/1615781919/451
https://mao.5ch.net/test/read.cgi/linux/1615781919/482-484

初期設定のスレタイ検索サイト https://ff5ch.syoboi.jp の検索結果が
2021年4月中旬から変更されてスレッド抽出に失敗するようになりました。
そのためabout:config「スレタイ検索用のアドレス」と「スレタイ検索時に
アドレスとスレタイを取得する正規表現」のデフォルト設定を更新します。

正規表現の説明
```
^(?=[^\t\n]+\t[^\t\n]+\t([^\t\n]+))([^\t\n]+)\t([^\t\n]+)
```
- まず行頭`^`をマッチさせる
- 次にlook ahead`(?=...)`を使って3列目をグループ1にキャプチャ
- そのあと改めて行頭から1列目、2列目をグループ2、グループ3にキャプチャ

修正にあたり不具合報告をしていただきありがとうございました。
https://mao.5ch.net/test/read.cgi/linux/1615781919/451
https://mao.5ch.net/test/read.cgi/linux/1615781919/482-484
@ma8ma ma8ma added the bug バグの追跡 label Apr 24, 2021
@ma8ma ma8ma added this to In progress in State of JDim-v0.5.0+ via automation Apr 24, 2021
@ma8ma ma8ma merged commit 78e6fae into JDimproved:master Apr 24, 2021
State of JDim-v0.5.0+ automation moved this from In progress to Done Apr 24, 2021
@ma8ma ma8ma deleted the fix-initial-settings-for-thread-title-search branch April 24, 2021 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug バグの追跡
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

初期設定のスレタイ検索サイト ff5ch.syoboi.jp の検索結果が出ない (2021-04)
1 participant