File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ var isString = require('lodash/isString');
88 * @returns {boolean } true if the given url is a remote location or data
99 */
1010function isRemoteUrl ( url ) {
11- return isString ( url ) && / ^ f t p : | ^ h t t p s ? : | ^ g s : | ^ s 3 : | ^ d a t a : ( [ \w - . ] + \/ [ \w - . ] + ( \+ [ \w - . ] + ) ? ) ? ( ; [ \w - . ] + = [ \w - . ] + ) * ; b a s e 6 4 , ( [ a - z A - Z 0 - 9 \/ + \n = ] + ) $ / . test ( url ) ;
11+ return isString ( url ) && / ^ f t p : | ^ h t t p s ? : | ^ g s : | ^ s 3 : | ^ d a t a : / . test ( url ) ;
1212}
1313
1414module . exports = isRemoteUrl ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const isString = require('lodash/isString');
66 * @returns {boolean } true if the given url is a remote location or data
77 */
88function isRemoteUrl ( url ) {
9- return isString ( url ) && / ^ f t p : | ^ h t t p s ? : | ^ g s : | ^ s 3 : | ^ d a t a : ( [ \w - . ] + \/ [ \w - . ] + ( \+ [ \w - . ] + ) ? ) ? ( ; [ \w - . ] + = [ \w - . ] + ) * ; b a s e 6 4 , ( [ a - z A - Z 0 - 9 \/ + \n = ] + ) $ / . test ( url ) ;
9+ return isString ( url ) && / ^ f t p : | ^ h t t p s ? : | ^ g s : | ^ s 3 : | ^ d a t a : / . test ( url ) ;
1010}
1111
1212module . exports = isRemoteUrl ;
You can’t perform that action at this time.
0 commit comments