liquidscript 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b457cb6e151caa8e4c94e6c6f6155a6d4fab540d
4
- data.tar.gz: 2593be00faad038c0c2d17d5457ccadd1c9b2bba
3
+ metadata.gz: 57668156cbed92dc8694537e87be8befb53b04ec
4
+ data.tar.gz: 53b033136d7808ce56d70de4528ad4a6426f989f
5
5
  SHA512:
6
- metadata.gz: 1147b9665936ae2f33b883d189a5ba9aee3c758e084fcb4a929cad9bfe5e3cfa0ad3c880f20ca21176751b9646e8622c7fb34e9800e89e4ec533567b41a4a51e
7
- data.tar.gz: bf1684054f962f5d6ef81b553ec83d5d3995f6ef814ede497d54d53b61fe091f4b5cf33844ab1eed930f57704ecdf9c4a807559f2c59628f3cea32344a490fdf
6
+ metadata.gz: f161d8b85ce48ac8437565a835d815232ba647a6fb61dc674ac67b4f09ae88e201240243c974852fd57816686e6e6ffa011b8d6ddf8be9f59359cafa81fee1e1
7
+ data.tar.gz: 93c142ef0d3c677dc54c334c0c312565bea1be8a9a121a7f3e2ffe43625e52bb0f28be249a601acdeb744f7c8fbcadc09e776a1d90d93ca2c4029cc1eb36be3c
@@ -112,7 +112,7 @@ module Liquidscript
112
112
  on(:unops) { |m| emit :unop, m }
113
113
  on(%r{<<([A-Z]+)}, :heredoc)
114
114
  on(%r{<<-([A-Z]+)}, :iheredoc)
115
- on(%r{r/(.*?)/([gimy]*)}, :regex)
115
+ on(%r{r/((?:.|\/)*)/([gimy]*)}, :regex)
116
116
  on(%r{"} => :istring)
117
117
  on("///" => :block_regex)
118
118
  on("->") { emit :arrow }
@@ -1,5 +1,5 @@
1
1
  module Liquidscript
2
2
 
3
3
  # The current version of liquidscript.
4
- VERSION = "0.9.0".freeze
4
+ VERSION = "0.9.1".freeze
5
5
  end
@@ -1,7 +1,7 @@
1
1
  data: |
2
2
  object = { hello: "world" }
3
3
  test = [1, 2]
4
- regex = r/^test/
4
+ regex = r/^\/test/
5
5
  block = ///
6
6
  ^test # comment
7
7
  ///
@@ -11,6 +11,6 @@ compiled: |
11
11
  var object, test, regex, block;
12
12
  object = { "hello": "world" };
13
13
  test = [1, 2];
14
- regex = /^test/;
14
+ regex = /^\/test/;
15
15
  block = /^test/;
16
16
  regex === block;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liquidscript
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Rodi