You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 4650 Reporter: AHuebner Assigned to:@xavierleroy Status: closed (set by @xavierleroy on 2011-05-29T10:14:16Z) Resolution: fixed Priority: normal Severity: minor Version: 3.10.2 Fixed in version: 3.11.1+dev Category: ~DO NOT USE (was: OCaml general)
Bug description
When using an exclusion character set, regexp_case_fold produces incorrect results.
#load "str.cma" ;;
open Str ;;
string_match (regexp_case_fold "[^a]") "a" 0 ;;
: bool = true
This is due to the set being first "negated" (everything but 'a', including 'A') and applying case_fold afterwards. ('A' will lead to 'a' in the final set.)
The text was updated successfully, but these errors were encountered:
Original bug ID: 4650
Reporter: AHuebner
Assigned to: @xavierleroy
Status: closed (set by @xavierleroy on 2011-05-29T10:14:16Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.10.2
Fixed in version: 3.11.1+dev
Category: ~DO NOT USE (was: OCaml general)
Bug description
When using an exclusion character set, regexp_case_fold produces incorrect results.
#load "str.cma" ;;
open Str ;;
string_match (regexp_case_fold "[^a]") "a" 0 ;;
This is due to the set being first "negated" (everything but 'a', including 'A') and applying case_fold afterwards. ('A' will lead to 'a' in the final set.)
The text was updated successfully, but these errors were encountered: