Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7240333

Browse files
author
Antonio Laguna
authored
fix: allow media query ranges (#137)
* Updating operators to accept new ones * Adding new test cases * Adding missing operator
1 parent fa670b3 commit 7240333

File tree

4 files changed

+682
-1
lines changed

4 files changed

+682
-1
lines changed

‎lib/nodes/Operator.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const { registerWalker } = require('../walker');
1212

1313
const Node = require('./Node');
1414

15-
const operators = ['+', '-', '/', '*', '%'];
15+
const operators = ['+', '-', '/', '*', '%','=','<=','>=','<','>'];
1616
const operRegex = new RegExp(`([/|*}])`);
1717

1818
class Operator extends Node {

‎test/fixtures/word.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ module.exports = {
1313
snapshot: [
1414
'bold italic 12px \t /3 \'Open Sans\', Arial, "Helvetica Neue", sans-serif',
1515
'(min-width: 700px) and (orientation: \\$landscape)',
16+
'(width < 700px)',
17+
'(width <= 700px)',
18+
'(width >= 500px) and (width <= 1200px)',
1619
' \\"word\\" \\s ',
1720
'--color',
1821
'-webkit-transition',

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /