Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: opal/opal
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 359627894da4
Choose a base ref
...
head repository: opal/opal
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 711af2cff275
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Oct 16, 2014

  1. Bump version

    Just to have clear distiction in local development.
    elia committed Oct 16, 2014
    Copy the full SHA
    888d90b View commit details
  2. Fill $1,$2,… in Regexp#=~

    ref #128
    elia committed Oct 16, 2014
    Copy the full SHA
    711af2c View commit details
Showing with 8 additions and 3 deletions.
  1. +1 −1 lib/opal/version.rb
  2. +7 −2 opal/corelib/regexp.rb
2 changes: 1 addition & 1 deletion lib/opal/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Opal
VERSION = '0.7.0.beta1'
VERSION = '0.7.0.beta2'
end
9 changes: 7 additions & 2 deletions opal/corelib/regexp.rb
Original file line number Diff line number Diff line change
@@ -66,12 +66,17 @@ def =~(string)
if (result) {
#{$~ = MatchData.new(`re`, `result`)};
for (var i = 1, ii = result.length; i < ii; i++) {
$opal.gvars[String(i)] = result[i];
}
return result.index;
}
else {
#{$~ = $` = $' = nil};
return nil;
}
return result ? result.index : nil;
}
end