Comparing version
'use strict'; | ||
module.exports = function (input) { | ||
if (typeof input !== 'string') { | ||
throw new TypeError(`Expected a string, got ${typeof input}`); | ||
throw new TypeError('get-src expected a string'); | ||
} | ||
@@ -6,0 +6,0 @@ var re = /src="(.*?)"/gm; |
{ | ||
"name": "get-src", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Get the 'src' value from any string containing a src="" (embed, iframe, html, etc).", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
3423
-0.38%