General

Profile

noraj-acceis (Alexandre ZANNI)

  • Login: noraj-acceis
  • Registered on: 10/17/2023
  • Last sign in: 10/17/2023

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 1 2

Activity

10/18/2023

04:07 PM Ruby Bug #19932: Regexp o modifier freeze interpolation between method calls
My apologies for my misunderstanding. Thanks for the detailed explanation. I now understand it's hard to do something else than the current behavior. noraj-acceis (Alexandre ZANNI)
02:29 PM Ruby Bug #19932: Regexp o modifier freeze interpolation between method calls
I'm not sure I was clear.
It's not that clear reading the documentation that the "freeze" will continue to live outside the local scope. All examples are always outside a method definition. As for local variables I would expect `myreg...
noraj-acceis (Alexandre ZANNI)
01:56 PM Ruby Bug #19932 (Closed): Regexp o modifier freeze interpolation between method calls
Taken the following PoC:
```ruby
def poc(regexp)
hs = [
'azerty',
'azertyui',
'azertyuiop'
]
out = []
hs.each do |h|
out << h if /#{regexp}/.match?('azerty')
end
out
end
p poc('az')
p poc('w...
noraj-acceis (Alexandre ZANNI)

10/17/2023

01:42 PM Ruby Feature #19930 (Open): [Documentation] class Regexp: Character Classes ranges
cf. https://ruby-doc.org/3.2.2/Regexp.html#class-Regexp-label-Character+Classes
> POSIX bracket expressions are also similar to character classes. They provide a portable alternative to the above, with the added benefit that they enco...
noraj-acceis (Alexandre ZANNI)

Also available in: Atom