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: 55727d8b8faf
Choose a base ref
...
head repository: opal/opal
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 09ed0af08b14
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Nov 23, 2014

  1. resolves #651 escape forward slash in regexp

    - escape forward slash in regexp for compatibility with Rhino on JDK6
    mojavelinux committed Nov 23, 2014
    Copy the full SHA
    70eed5e View commit details
  2. Merge pull request #653 from mojavelinux/issue-651-opal_0_6

    resolves #651 escape forward slash in regexp
    elia committed Nov 23, 2014
    Copy the full SHA
    09ed0af View commit details
Showing with 1 addition and 1 deletion.
  1. +1 −1 opal/corelib/regexp.rb
2 changes: 1 addition & 1 deletion opal/corelib/regexp.rb
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ class Regexp
class << self
def escape(string)
%x{
return string.replace(/([-[\]/{}()*+?.^$\\| ])/g, '\\$1')
return string.replace(/([-[\]\/{}()*+?.^$\\| ])/g, '\\$1')
.replace(/[\n]/g, '\\n')
.replace(/[\r]/g, '\\r')
.replace(/[\f]/g, '\\f')