md_edit 0.2.1 → 0.2.2

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: 805a24d10ff12f7104375b217c8f1fe8af186f6c
4
- data.tar.gz: 0a2ecebf02d98048ec6af1f3d74a771a72c06c2b
3
+ metadata.gz: 4c9699e0321fd92c07f4720867075d0ac6585503
4
+ data.tar.gz: 7cc2d79abe6b63a7282698b08d7b35c30a9d4016
5
5
  SHA512:
6
- metadata.gz: 51f798f78809cff32dd923b2e07f0f30d2a09111e692b22ac949d80a2ce1540d6fde129e69d92b232b26b740cc072ed1e17ae6bfec65db242af233d823debd75
7
- data.tar.gz: b240a8a670771f7083dbfa59fc9b3da2da55f33b5a128a2a7c5fcbc22b93f3aed54165c36088c54f6f467d3baa42eb8b5af2743eeaee2f0d424cc8b18ce152a7
6
+ metadata.gz: 85037ea96652ceccbe258c5cd796608dc3a0b1d324dd7f5a0b1f61e019dec4939a06b0097c1b43f72e3103be698b3257f88b4bb0beb8507fd6ca2e1ffb7505cd
7
+ data.tar.gz: e36b02b4ec92e71792018aa5701bb4bd6c8571ec8ecae674a832efd4d7da996b6bae0e07760688cde90e94cf484f4a38f67c343fb6a9d960a47c31d83794cf5f
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/md_edit.rb CHANGED
@@ -94,7 +94,8 @@ class MdEdit
94
94
 
95
95
  def find(s, heading: true)
96
96
 
97
- key = @sections.keys.grep(/#{s.downcase}/i).first
97
+ key = @sections.keys\
98
+ .grep(/#{s.downcase.gsub('(','\(').gsub(')','\)')}/i).first
98
99
  return unless key
99
100
 
100
101
  headings = key.lines.first.split(/ > /)
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: md_edit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  R5r1JjTBaaHOaqI14bIkwUSY5q1cO4Wl7HWly80kX2AD8o/tPHvyF9Tx3pBvaboU
32
32
  etnSPHbQwmBvFQ==
33
33
  -----END CERTIFICATE-----
34
- date: 2017-12-27 00:00:00.000000000 Z
34
+ date: 2017-12-28 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: line-tree
metadata.gz.sig CHANGED
Binary file