octopress-tag-helpers 1.0.7 → 1.0.8

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: 993caa04fbf465bd321959002488b222c5dd2007
4
- data.tar.gz: 431c8402bf53da18e272f210f6ca5ecc8e031592
3
+ metadata.gz: 553a164ab99dcdd8908e62a87aff0950aa099333
4
+ data.tar.gz: 3471d514d914a148cb0dbb0b2888a1cafa771218
5
5
  SHA512:
6
- metadata.gz: 4600f75490cb6b0454dc39a7c50d043ac9ff8a7a4ea7b82a08fc5528810ef20e81f2349ef6c7c93f659d09e2862822c5caf4a0384b30d29a21237657fc239435
7
- data.tar.gz: 9299f61edfec3772ef5f9987661f8fb0efb20376f98c3f0131ac380e0d29c01d7d77cd6f59166b8fd00148be7e9505b7cd9681599604419ab22a80b15642de16
6
+ metadata.gz: a36ce70cea5900625d2b8d8166ab820ec82d21bdf53184d722bb38792929d74c2dbd5a7295a6587589dfe92664405fc59a7d1a17d6216947391a546704e891a7
7
+ data.tar.gz: 83dba58db24dabd47b5839edfa56fd135f4a6788a4b14e98104d8e5bb5f703501a71c6d18616ab3c258f80d92792e49ee67edb32b4b316578310bbd55e243779
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.8 - 2015-05-21
4
+ - Fix: Previous regex was a bit too relaxed. It matched `||` when it should only match a single `|`.
5
+
3
6
  ## 1.0.7 - 2015-05-19
4
7
  - Fix: Relaxed filters regex to fix issue with filter-tag.
5
8
 
@@ -2,7 +2,7 @@ module Octopress
2
2
  module TagHelpers
3
3
  module Var
4
4
  TERNARY = /(?<markup>.*?)\(\s*(?<condition>.+?)\s+\?\s+(?<trueresult>.+?)\s+:\s+(?<falseresult>.+?)\s*\)(?<other>.+)?/
5
- HAS_FILTERS = /(?<markup>.*?)(?<filters>\s*\|\s+.+)/
5
+ HAS_FILTERS = /(?<markup>.*?)(?<filters>(\A|[^|])\|\s+.+)/
6
6
 
7
7
  def self.set_var(var, operator, value, context)
8
8
  case operator
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module TagHelpers
3
- VERSION = "1.0.7"
3
+ VERSION = "1.0.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-tag-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-20 00:00:00.000000000 Z
11
+ date: 2015-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll