General

Profile

tom-lord (Tom Lord)

Issues

Activity

11/12/2017

04:09 PM Ruby master Bug #14101: Unreliable handling of groups nested within absent/absence operator of regex
Here's a slightly more minimal reproduction example:
~~~ ruby
"abb".match /(?~(a)c)/
#=> ArgumentError: negative...
tom-lord (Tom Lord)
03:55 PM Ruby master Bug #14101 (Closed): Unreliable handling of groups nested within absent/absence operator of regex
The new absent/absence regex operator, added to Onigmo and bundled into ruby since v2.4.1, supports nested groupings ... tom-lord (Tom Lord)

09/01/2017

08:30 AM CommonRuby Feature #13581: Syntax sugar for method reference
Consider the following:
~~~ ruby
def get_method(sym, object = Object)
object.send(:method, sym)
end
~~~
...
tom-lord (Tom Lord)

02/24/2015

10:03 AM Ruby master Bug #10891: /[[:punct:]]/ POSIX group broken (with string literals?)
On further investigation, this is a known issue in Onigmo (Ruby 2.x's regexp parser).
However, it was apparently "...
tom-lord (Tom Lord)

02/23/2015

03:53 PM Ruby master Bug #10891: /[[:punct:]]/ POSIX group broken (with string literals?)
Nobuyoshi Nakada wrote:
> It occurs with UTF-8 encoding only.
Ahhhhh, of course - *that's* what the difference be...
tom-lord (Tom Lord)
12:29 PM Ruby master Bug #10891 (Closed): /[[:punct:]]/ POSIX group broken (with string literals?)
The regular expression: `/[[:punct:]]/` should match the following characters:
! " # $ % & ' ( ) * + , - . / :...
tom-lord (Tom Lord)

02/07/2015

11:43 PM Ruby master Misc #10836 (Closed): Add Documentation to Regexp
Documented non-subexp option toggling
Regexp option toggling can be done in two forms:
/(?imx:subexpr)/ - this ...
tom-lord (Tom Lord)

Also available in: Atom