Skip to content

Commit

Permalink
Release 0.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewmueller committed Jan 17, 2012
1 parent 482d46d commit 13bff83
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
0.4.2 / 2012-01-16
==================

* Multiple selectors support: $('.apple, .orange'). Thanks @siddMahen!
* Update package.json to always use latest cheerio-soupselect
* Fix memory leak in index.js

0.4.1 / 2011-12-19
==================
* Minor packaging changes to allow `make test` to work from npm installation
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "cheerio",
"description": "Tiny, fast, and elegant implementation of core jQuery designed specifically for the server",
"keywords": ["htmlparser", "jquery", "selector", "scraper"],
"version": "0.4.1",
"version": "0.4.2",
"repository": {
"type": "git",
"url": "git://github.com/MatthewMueller/cheerio.git"
Expand Down
4 changes: 2 additions & 2 deletions src/cheerio.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ cheerio = do ->
trimRight = /\s+$/

cheerio.fn = cheerio.prototype =
cheerio : "0.4.1"
cheerio : "0.4.2"
constructor: cheerio
init: (selector, context, root) ->
# Handle $(""), $(null), or $(undefined)
Expand All @@ -39,7 +39,7 @@ cheerio = do ->
match = [ null, selector, null ]
else
match = quickExpr.exec selector

if match && (match[1] || !context)
if match[1]
# It's an HTML string
Expand Down

0 comments on commit 13bff83

Please sign in to comment.