ruby2js 3.0.14 → 3.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruby2js/converter/regexp.rb +2 -2
- data/lib/ruby2js/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7acab4a28c4ec163da40b2f1847692df089ff593af8d735bf163cfe566ed7f5b
|
4
|
+
data.tar.gz: f0f33e2c6beba7785d535ece64e4402cb5aac29fca9f9541087857905ba33d8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d53db4145f632be93c234cf706b25e6c7c27a0d0c1a864543045e6d9a9672e9e9792281677da6a4b107a3eac0d173ca2cd151a0d0f91acf3171ecc5a84dd06c4
|
7
|
+
data.tar.gz: 49364f4bb8cf3f05ea9d07664d800a86af81817b096a40c89ec8848a6f45fe62b755cc2e0c995ce49f300bb84a6caa1de4b5fd822b8ae403579e9244dde9e442
|
@@ -28,9 +28,9 @@ module Ruby2JS
|
|
28
28
|
end
|
29
29
|
|
30
30
|
if parts.first.type == :str and parts.first.children[0].start_with?('^')
|
31
|
-
opts = opts + [:m] unless opts.include? :m
|
31
|
+
opts = opts + [:m] unless opts.include? :m or opts.include? 'm'
|
32
32
|
elsif parts.last.type == :str and parts.last.children[0].end_with?('$')
|
33
|
-
opts = opts + [:m] unless opts.include? :m
|
33
|
+
opts = opts + [:m] unless opts.include? :m or opts.include? 'm'
|
34
34
|
end
|
35
35
|
|
36
36
|
# use slash syntax if there are few embedded slashes in the regexp
|
data/lib/ruby2js/version.rb
CHANGED