From: zn@... Date: 2015-12-31T11:56:31+00:00 Subject: [ruby-core:72635] [Ruby trunk - Bug #11912] [WIP] resolv: attempt to fix Resolv::LOC::Coord.create Issue #11912 has been updated by Kazuhiro NISHIYAMA. `()` is required, or use `0` instead of `1`. ``` % rbenv exec irb -r irb/completion --simple-prompt >> "N"[/([NE])/,1] => "N" >> "N"[/[NE]/,1] => nil >> "N"[/[NE]/,0] => "N" ``` ---------------------------------------- Bug #11912: [WIP] resolv: attempt to fix Resolv::LOC::Coord.create https://bugs.ruby-lang.org/issues/11912#change-55887 * Author: Eric Wong * Status: Open * Priority: Normal * Assignee: Akira Tanaka * ruby -v: * Backport: 2.0.0: UNKNOWN, 2.1: REQUIRED, 2.2: REQUIRED, 2.3: REQUIRED ---------------------------------------- This seems to have never worked in the first place: * "$1 < 180" where $1 is a string raises ArgumentError * regexps in the assignment for "hemi" reset $1 and clobber $2, $3, $4 * orientation is a frozen string literal which we append to * "$4[[/NS/],1]" has extra braces I'm not sure if I'm fixing this properly, extra eyes appreciated. ---Files-------------------------------- 0001-resolv-attempt-to-fix-Resolv-LOC-Coord.create.patch (1.92 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: