Fixes #930 - regression in tidying selectors.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Tue, 11 Apr 2017 10:12:15 +0000 (12:12 +0200)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Wed, 12 Apr 2017 19:09:45 +0000 (21:09 +0200)
commit85f87b08ed7e91eec416bd0e27db090c38bd0e33
tree27682b50fa7af44abc4e17467985fb027e64e003
parentb41d37fde8d3d609a3c0a26e426edd354da029e2
Fixes #930 - regression in tidying selectors.

Why:

* `null` is not a safe argument to `replace` method as it's interpreted
  as a text pattern.
History.md
lib/optimizer/level-1/tidy-rules.js
test/optimizer/level-1/optimize-test.js