Skip to content

Commit a097a4b

Browse files
committed
Merge pull request #3 from ericf/match-impl
Changed `value.type` check and renamed package to css-mediaquery
2 parents 3c195d6 + 2f8a1f3 commit a097a4b

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

.npmignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.DS_Store
2+
.gitignore
3+
node_modules/
4+
test/

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
CSS Media Match
1+
CSS Media Query
22
===============
33

4-
Determines if a given CSS Media Query matches a set of values.
4+
Parses and determines if a given CSS Media Query matches a set of values.
55

66

77
License

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ function matchQuery(mediaQuery, values) {
2323

2424
// Either the parsed or specified `type` is "all", or the types must be
2525
// equal for a match.
26-
var typeMatch = query.type === 'all' || values.type === 'all' ||
27-
values.type === query.type;
26+
var typeMatch = query.type === 'all' || values.type === query.type;
2827

2928
// Quit early when `type` doesn't match, but take "not" into account.
3029
if ((typeMatch && inverse) || !(typeMatch || inverse)) {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "css-media-match",
2+
"name": "css-mediaquery",
33
"version": "0.0.0",
4-
"description": "Determines if a given CSS Media Query matches a set of values.",
4+
"description": "Parses and determines if a given CSS Media Query matches a set of values.",
55
"main": "index.js",
66
"scripts": {
77
"test": "node_modules/.bin/mocha -R spec"

0 commit comments

Comments
 (0)