Skip to content

Commit

Permalink
Utilizing Math.abs(), updating the banner
Browse files Browse the repository at this point in the history
Forgot a space
  • Loading branch information
avoidwork committed Feb 2, 2013
1 parent 0feae20 commit fb27fd3
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion grunt.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = function(grunt) {
" * <%= pkg.name %>\n" +
" *\n" +
" * @author <%= pkg.author.name %> <<%= pkg.author.email %>>\n" +
" * @copyright <%= pkg.author.name %> <%= grunt.template.today('yyyy') %>\n" +
" * @copyright <%= grunt.template.today('yyyy') %> <%= pkg.author.name %>\n" +
" * @license <%= pkg.licenses[0].type %> <<%= pkg.licenses[0].url %>>\n" +
" * @link <%= pkg.homepage %>\n" +
" * @module <%= pkg.name %>\n" +
Expand Down
8 changes: 4 additions & 4 deletions lib/filesize.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
* filesize
*
* @author Jason Mulligan <jason.mulligan@avoidwork.com>
* @copyright Jason Mulligan 2013
* @copyright 2013 Jason Mulligan
* @license BSD-3 <http://opensource.org/licenses/BSD-3-Clause>
* @link https://github.com/avoidwork/filesize.js
* @link http://filesizejs.com
* @module filesize
* @version 1.7.3
* @version 1.7.4
*/

(function (global) {
Expand Down Expand Up @@ -45,7 +45,7 @@
zero = /^0$/;

// Flipping a negative number to determine the size
if (neg) num = num - (num * 2);
if (neg) num = Math.abs(num);

while (i--) {
size = sizes[i][1];
Expand Down
8 changes: 4 additions & 4 deletions lib/filesize.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "filesize",
"description": "JavaScript library to generate a human readable String describing the file size",
"version": "1.7.3",
"homepage": "https://github.com/avoidwork/filesize.js",
"version": "1.7.4",
"homepage": "http://filesizejs.com",
"author": {
"name": "Jason Mulligan",
"email": "jason.mulligan@avoidwork.com"
Expand Down
2 changes: 1 addition & 1 deletion src/filesize.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
zero = /^0$/;

// Flipping a negative number to determine the size
if (neg) num = num - (num * 2);
if (neg) num = Math.abs(num);

while (i--) {
size = sizes[i][1];
Expand Down

0 comments on commit fb27fd3

Please sign in to comment.