olek-libcraigscrape 1.1.0.5 → 1.1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/posting.rb +1 -5
- metadata +1 -1
data/lib/posting.rb
CHANGED
@@ -17,12 +17,8 @@ class CraigScrape::Posting < CraigScrape::Scraper
|
|
17
17
|
HEADER_LOCATION = /^.+[ ]*\-[ ]*[\$]?[\d]+[ ]*\((.+)\)$/
|
18
18
|
POSTING_ID = /PostingID\:[ ]*([\d]+)/
|
19
19
|
REPLY_TO = /(.+)/
|
20
|
-
<<<<<<< HEAD
|
21
|
-
PRICE = /((?:^\$[\d]+(?:\.[\d]{2})?)|(?:\$[\d]+(?:\.[\d]{2})?$))/
|
22
|
-
|
23
|
-
=======
|
24
20
|
PRICE = /((?:^\$[\d]+(?:\.[\d]{2})?)|(?:\$[\d]+(?:\.[\d]{2})?))/
|
25
|
-
|
21
|
+
|
26
22
|
# NOTE: we implement the (?:) to first check the 'old' style format, and then the 'new style'
|
27
23
|
# (As of 12/03's parse changes)
|
28
24
|
USERBODY_PARTS = /^(.+)\<div id\=\"userbody\">(.+)\<br[ ]*[\/]?\>\<br[ ]*[\/]?\>(.+)\<\/div\>(.+)$/m
|