anchors 0.1.3 → 0.1.4

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: 49d66a136f6d898f5091eaf0c03a792cb20839e8
4
- data.tar.gz: 872634dddccb96495cd7613d077d8caf88046d33
3
+ metadata.gz: 5d96152720cbe2dba9390e0692d9b2c3169dcd97
4
+ data.tar.gz: edc730971828fcb4fb7b511ebec006f2622c109c
5
5
  SHA512:
6
- metadata.gz: ab0b55b34707741d344b98480b70ee77e6a700dd73d63ff484bac6fe06d22cd3a86d0c02e5022c225560516e85f8881c2236986539a7a689c1e152b1b25fa23b
7
- data.tar.gz: 6bc51cacae25847e5ea3903f4b8d2dcd368e28f46c0bbb07fab66d68a30559be4f4de29bfb0b30ff1bd56e0155965a77958652f642702ac3a6205a5623e185d0
6
+ metadata.gz: eb3796e791a9452dd1052010bc6c7ddea099524ef30c508b4efc505668d787127cc6ec740100e77355c88366417664c4ead3fe1a67e594b6aed97916713aabec
7
+ data.tar.gz: 6dca125444593a883804a9e78c8cfd0d1bd9ad2468ea721420b20bd2621ec0efffbbba911e4ec26fdb3fc3099384b59d15a68706fe6b6b621875a5a823c9b735
@@ -40,7 +40,7 @@ module Anchors
40
40
  end
41
41
 
42
42
  def dom_id(el)
43
- id = el.content.downcase.gsub(/[^\d\w\s_]/, '').gsub(' ', seperator)
43
+ id = el.content.downcase.gsub(/[^\d\w\s_]/m, '').strip.gsub(' ', seperator)
44
44
  [id, id_count(id)].compact.join(seperator)
45
45
  end
46
46
 
@@ -1,3 +1,3 @@
1
1
  module Anchors
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anchors
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Gessler
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-02-19 00:00:00.000000000 Z
11
+ date: 2016-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler