Skip to content

Commit

Permalink
Default 'strict' to false.
Browse files Browse the repository at this point in the history
  • Loading branch information
rstacruz committed Jul 18, 2012
1 parent 385f909 commit a5f6c8c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ And use it like so:

require 'sqwish'
Sqwish.minify "div { color: red; } div { background: black; }"
#=> "div{color:red;background:black}"
#=> "div{color:red}div{background:black}"

You can also use the `strict: false` flag (it defaults to true):
You can also use the `strict: true` flag (it defaults to false):

Sqwish.minify "div { color: red; } div { background: black; }", strict: false
#=> "div{color:red}div{background:black}"
Sqwish.minify "div { color: red; } div { background: black; }", strict: true
#=> "div{color:red;background:black}"

## Authors

Expand Down
2 changes: 1 addition & 1 deletion lib/sqwish.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module Sqwish
class << self
def minify(src, options={:strict => true})
def minify(src, options={:strict => false})
sqwish_js.call "sqwish", src, !! options[:strict]
end

Expand Down

0 comments on commit a5f6c8c

Please sign in to comment.