File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -63,8 +63,7 @@ helpers.css = function(list, options) {
63
63
var ext = path . extname ( item ) ;
64
64
var fp = item ;
65
65
66
- var isExternal = / ( ^ \/ \/ ) | ( : \/ \/ ) / . test ( item ) ;
67
- if ( ! isExternal ) {
66
+ if ( ! / ( ^ \/ \/ ) | ( : \/ \/ ) / . test ( item ) ) {
68
67
fp = path . posix . join ( assets , item ) ;
69
68
}
70
69
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ describe('html', function() {
39
39
} ) ;
40
40
41
41
it ( 'should not use options.assets when passing in an absolute url' , function ( ) {
42
- var actual = hbs . compile ( '{{{css "https://abc.com/bar.css"}}}' ) ( { options : { assets : " foo" } } ) ;
42
+ var actual = hbs . compile ( '{{{css "https://abc.com/bar.css"}}}' ) ( { options : { assets : ' foo' } } ) ;
43
43
assert . equal ( actual , '<link type="text/css" rel="stylesheet" href="https://abc.com/bar.css">' ) ;
44
44
} ) ;
45
45
You can’t perform that action at this time.
0 commit comments