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

Regex: Implement named captures #904

Merged
merged 3 commits into from
Jan 29, 2022

Commits on Jan 29, 2022

  1. Regex: Implement named captures

    正規表現の名前付きキャプチャ機能をラッパークラスに実装します。
    グループ名またはグループ番号でマッチした文字列を取得する関数を追加します。
    グループ名のみの取得APIは実際に使う箇所がないため今回は実装しません。
    ma8ma committed Jan 29, 2022
    Configuration menu
    Copy the full SHA
    fdd26f4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    06c044b View commit details
    Browse the repository at this point in the history
  3. Add provisional support for named captures to thread title search

    about:configの `スレタイ検索時にアドレスとスレタイを取得する正規表現`
    に名前付きキャプチャ対応を追加します。(暫定サポート)
    設定した正規表現パターンにグループ名が有れば名前付きキャプチャ、
    無ければグループ番号で対象を取得します。また、互換性のため
    グループ番号は現状を維持します。
    
    取得対象     | グループ番号 | グループ名 | 備考
    ---          | ---          | ---        | ---
    スレURL      | 1            | url        | 必須
    スレタイトル | 2            | subject    | 必須
    レス数       | 3            | number     | オプション
    ma8ma committed Jan 29, 2022
    Configuration menu
    Copy the full SHA
    263000f View commit details
    Browse the repository at this point in the history