bookmarks 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 +4 -4
- data/Changelog.markdown +6 -0
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/lib/bookmarks/document.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 366f0dfbc1b9a0a27ae352712737725bba4a3980
|
4
|
+
data.tar.gz: a4d1515323a73d7a15e5fa35389d91bdd8d2ad55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e02f621dbef37ec49f419ff1dcca276b378363689ee4d1934e7a155013e18587bbfc847675403ae4a420d8c46ad564ee62d87eff3e3e4c984b3554e3ca08481
|
7
|
+
data.tar.gz: d67b837f019869195d89f949bd2806993ef7f945c784a3099a7726dfdf0a3a846d41ea43dd82c8826118a28cbce04d9a22e1a127206b31b7f744e29081277a1f
|
data/Changelog.markdown
CHANGED
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
data/lib/bookmarks/document.rb
CHANGED
@@ -79,7 +79,7 @@ module Bookmarks
|
|
79
79
|
# TODO This should have its own parser class.
|
80
80
|
def parse_a_bookmark line
|
81
81
|
line = line.strip
|
82
|
-
if line =~ /^<DT><H3
|
82
|
+
if line =~ /^<DT><H3/
|
83
83
|
@h3_tags << h3_tags(line)
|
84
84
|
elsif line =~ /^<\/DL>/
|
85
85
|
@h3_tags.pop
|
@@ -100,7 +100,7 @@ module Bookmarks
|
|
100
100
|
#
|
101
101
|
# Returns String h3 content or empty string.
|
102
102
|
def h3_tags line
|
103
|
-
md = /<H3
|
103
|
+
md = /<H3.*?>(.*?)<\/H3>/.match(line)
|
104
104
|
md ? md[1] : ""
|
105
105
|
end
|
106
106
|
|