Skip to content

Commit

Permalink
isString is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
Skiptir Engu committed Jan 16, 2017
1 parent 6a61ba2 commit bd3bd20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/mp3-split.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const spawnSync = require('child_process').spawnSync;

function isUrl(input) {
let regexp = /(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g;
return util.isString(input) && input.match(regexp);
return (typeof input === 'string') && input.match(regexp);
}

function fileName(file) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mp3-split",
"version": "3.1.0",
"version": "3.1.1",
"description": "MP3 audio splitter",
"main": "index.js",
"author": {
Expand Down

0 comments on commit bd3bd20

Please sign in to comment.