diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/output.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/output.js b/lib/output.js index 5df1c2c4..c803fbae 100644 --- a/lib/output.js +++ b/lib/output.js @@ -141,10 +141,10 @@ function OutputStream(options) { maybe_newline(); } if (might_need_space) { - if ((is_identifier_char(last_char()) + var prev = last_char(); + if ((is_identifier_char(prev) && (is_identifier_char(ch) || ch == "\\")) - || - (/[\+\-]$/.test(last) && /^[\+\-]/.test(str))) + || (/^[\+\-\/]$/.test(ch) && ch == prev)) { OUTPUT += " "; current_col++; |