Skip to content

Commit fb27fd3

Browse files
committed
Utilizing Math.abs(), updating the banner
Forgot a space
1 parent 0feae20 commit fb27fd3

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

grunt.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = function(grunt) {
66
" * <%= pkg.name %>\n" +
77
" *\n" +
88
" * @author <%= pkg.author.name %> <<%= pkg.author.email %>>\n" +
9-
" * @copyright <%= pkg.author.name %> <%= grunt.template.today('yyyy') %>\n" +
9+
" * @copyright <%= grunt.template.today('yyyy') %> <%= pkg.author.name %>\n" +
1010
" * @license <%= pkg.licenses[0].type %> <<%= pkg.licenses[0].url %>>\n" +
1111
" * @link <%= pkg.homepage %>\n" +
1212
" * @module <%= pkg.name %>\n" +

lib/filesize.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
* filesize
33
*
44
* @author Jason Mulligan <[email protected]>
5-
* @copyright Jason Mulligan 2013
5+
* @copyright 2013 Jason Mulligan
66
* @license BSD-3 <http://opensource.org/licenses/BSD-3-Clause>
7-
* @link https://github.com/avoidwork/filesize.js
7+
* @link http://filesizejs.com
88
* @module filesize
9-
* @version 1.7.3
9+
* @version 1.7.4
1010
*/
1111

1212
(function (global) {
@@ -45,7 +45,7 @@
4545
zero = /^0$/;
4646

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

5050
while (i--) {
5151
size = sizes[i][1];

lib/filesize.min.js

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "filesize",
33
"description": "JavaScript library to generate a human readable String describing the file size",
4-
"version": "1.7.3",
5-
"homepage": "https://github.com/avoidwork/filesize.js",
4+
"version": "1.7.4",
5+
"homepage": "http://filesizejs.com",
66
"author": {
77
"name": "Jason Mulligan",
88
"email": "[email protected]"

src/filesize.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
zero = /^0$/;
3535

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

3939
while (i--) {
4040
size = sizes[i][1];

0 commit comments

Comments
 (0)