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

"ab" =~ /(?!^a).*b/ doesn't match #44

Closed
k-takata opened this issue Aug 30, 2014 · 1 comment
Closed

"ab" =~ /(?!^a).*b/ doesn't match #44

k-takata opened this issue Aug 30, 2014 · 1 comment
Labels
bug

Comments

@k-takata k-takata added the bug label Aug 30, 2014
k-takata added a commit that referenced this issue Sep 1, 2014
See also: https://bugs.ruby-lang.org/issues/9728

Optimization for '.*' was wrong. Optimization should be disabled not
only for /(?<=x).*/ but also for /(?!x).*/.
k-takata added a commit that referenced this issue Sep 1, 2014
@k-takata
Copy link
Owner Author

@k-takata k-takata commented Sep 1, 2014

Fixed.

@k-takata k-takata closed this Sep 1, 2014
k-takata added a commit that referenced this issue Sep 1, 2014
See also: https://bugs.ruby-lang.org/issues/9728

Optimization for '.*' was wrong. Optimization should be disabled not
only for /(?<=x).*/ but also for /(?!x).*/.

(cherry picked from commit 15ddec6)

Conflicts:

     regexec.c
k-takata added a commit to k-takata/bregonig that referenced this issue Sep 13, 2014
Ver.3.06
* Onigmo (Oniguruma-mod) 5.15.0 for bregonig.dll を使用。
  https://github.com/k-takata/Onigmo/tree/Onigmo-5.15.0_for_bregonig
  - Unicode 7.0 に対応
  - Oniguruma 5.9.5 をマージ
  - 大量のグループを使うと落ちる問題を修正
    k-takata/Onigmo#24
  - /\x{1ffc}/i =~ "\x1ff3" がマッチしない問題を修正
  - UTF-16/32 で /[a-c#]+\W/ =~ "def#" がマッチしない問題を修正
  - /(?i)\u0149\u0149/ =~ "\u0149\u0149" がマッチしない問題を修正
    k-takata/Onigmo#40
  - 文字クラスの中で /w を使い、/i オプションを指定したときの問題を修正
    k-takata/Onigmo#4
  - 文字プロパティが /i オプションを無視する問題を修正
    k-takata/Onigmo#41
  - "ab" =~ /(?!^a).*b/ がマッチしない問題を修正
    k-takata/Onigmo#44
k-takata added a commit to k-takata/bregonig that referenced this issue Sep 13, 2014
* Oniguruma 5.9.5 改変版2 for bregonig.dll V2 を使用。
  https://github.com/k-takata/Onigmo/tree/onig-5.9.5-mod2_for_bregonig-v2
  - ベースバージョンを Oniguruma 5.9.4 から 5.9.5 に変更。
  - 大量のグループを使うと落ちる問題を修正
    k-takata/Onigmo#24
  - UTF-16/32 で /[a-c#]+\W/ =~ "def#" がマッチしない問題を修正
  - /(?i)\u0149\u0149/ =~ "\u0149\u0149" がマッチしない問題を修正
    k-takata/Onigmo#40
  - "ab" =~ /(?!^a).*b/ がマッチしない問題を修正
    k-takata/Onigmo#44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.