rust-bindgen icon indicating copy to clipboard operation
rust-bindgen copied to clipboard

Case-insensitive regexes were useful

Open Dr-Emann opened this issue 1 year ago • 0 comments

I think case insensitivity (unicode-case) was useful:

--allowlist-item '(?i)(aaa|bbb).*' used to work for e.g. AAA_CONST, and bbb_func()

Now it (silently 😲) matches nothing.

As a workaround, it looks like for my case I can use --allowlist-item '(?i-u:aaa|bbb).*', which turns on case insensitivity, and turns off unicode matching for my literal prefixes.

Originally posted by @Dr-Emann in https://github.com/rust-lang/rust-bindgen/issues/2702#issuecomment-1940389007

Dr-Emann avatar Feb 13 '24 04:02 Dr-Emann