Skip to content

Commit

Permalink
fix version parser
Browse files Browse the repository at this point in the history
  • Loading branch information
kof committed Nov 9, 2012
1 parent 936d89e commit ed3dd16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var gm = require('gm');

if (Number(gm.version.replace('.', '')) < 152) {
if (Number(gm.version.replace(/\./g, '')) < 152) {
throw new Error('Version 1.5.2 or higher of "gm" module is required.')
}

Expand Down

0 comments on commit ed3dd16

Please sign in to comment.