Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit 14f8ab5

Browse files
committed
1.4.5
Changelog, browser version, version update in package.json
1 parent ebf8da8 commit 14f8ab5

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
Version 1.4.5
2+
* Hotfix: Fix binary rules for "," and "=" operators (@markelog)
3+
14
Version 1.4.4
25
* Improve `requireSpaceAfterBinaryOperators` rule (@markelog)
36
* Improve `disallowSpaceAfterBinaryOperators` rule (@markelog)

jscs-browser.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ module.exports.prototype = {
10181018
if (operators[','] || operators['=']) {
10191019
file.iterateTokensByType('Punctuator', function(token, i, tokens) {
10201020
var operator = token.value;
1021-
if (operator !== ',' && operator !== '=') {
1021+
if (operator !== ',' && operator !== '=' || !operators[operator]) {
10221022
return;
10231023
}
10241024

@@ -1193,7 +1193,7 @@ module.exports.prototype = {
11931193
if (operators[','] || operators['=']) {
11941194
file.iterateTokensByType('Punctuator', function(token, i, tokens) {
11951195
var operator = token.value;
1196-
if (operator !== ',' && operator !== '=') {
1196+
if (operator !== ',' && operator !== '=' || !operators[operator]) {
11971197
return;
11981198
}
11991199

@@ -2836,7 +2836,7 @@ module.exports.prototype = {
28362836
if (operators[','] || operators['=']) {
28372837
file.iterateTokensByType('Punctuator', function(token, i, tokens) {
28382838
var operator = token.value;
2839-
if (operator !== ',' && operator !== '=') {
2839+
if (operator !== ',' && operator !== '=' || !operators[operator]) {
28402840
return;
28412841
}
28422842

@@ -3017,7 +3017,7 @@ module.exports.prototype = {
30173017
if (operators[','] || operators['=']) {
30183018
file.iterateTokensByType('Punctuator', function(token, i, tokens) {
30193019
var operator = token.value;
3020-
if (operator !== ',' && operator !== '=') {
3020+
if (operator !== ',' && operator !== '=' || !operators[operator]) {
30213021
return;
30223022
}
30233023

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"author": "Marat Dulin <mdevils@yandex.ru>",
33
"description": "JavaScript Code Style",
44
"name": "jscs",
5-
"version": "1.4.4",
5+
"version": "1.4.5",
66
"main": "lib/checker",
77
"homepage": "https://github.com/mdevils/node-jscs",
88
"license": "MIT",

0 commit comments

Comments
 (0)