[#106341] [Ruby master Bug#18369] users.detect(:name, "Dorian") as shorthand for users.detect { |user| user.name == "Dorian" } — dorianmariefr <noreply@...>
Issue #18369 has been reported by dorianmariefr (Dorian Mari辿).
14 messages
2021/11/30
[#106351] [Ruby master Bug#18371] Release branches (release information in general) — "tenderlovemaking (Aaron Patterson)" <noreply@...>
Issue #18371 has been reported by tenderlovemaking (Aaron Patterson).
7 messages
2021/11/30
[ruby-core:106065] [Ruby master Bug#18294] error when parsing regexp comment
From:
duerst <noreply@...>
Date:
2021-11-15 06:30:51 UTC
List:
ruby-core #106065
Issue #18294 has been updated by duerst (Martin D端rst). thyresias (Thierry Lambert) wrote: > The following code generates the error "too short escaped multibyte character" > ``` ruby > _re = / > foo # \M-ca > /x > ``` > Removing the \ or doubling it makes the error disappear. > Since this is in comment text, I would expect to be able to type anything there: am I missing something? I guess yes. It's somewhat counter-intuitive, but I guess the implementation is handling escapes while it reads the regexp up to the /x, and only then it knows that some parts of it are comments. It would be possible to change the implementation, but I don't know if it's worth it for such an edge case. ---------------------------------------- Bug #18294: error when parsing regexp comment https://bugs.ruby-lang.org/issues/18294#change-94656 * Author: thyresias (Thierry Lambert) * Status: Open * Priority: Normal * ruby -v: ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [i386-mingw32] * Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN ---------------------------------------- The following code generates the error "too short escaped multibyte character" ``` ruby _re = / foo # \M-ca /x ``` Removing the \ or doubling it makes the error disappear. Since this is in comment text, I would expect to be able to type anything there: am I missing something? -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>