Skip to content

Commit 34843b2

Browse files
committed
fix for ie11 to trim LF at head
1 parent 6de75a1 commit 34843b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/js/core.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ core.kindof = (that)->
1616
return 'Null' if that is null
1717
return 'Undefined' if that is undefined
1818
ctor = that.constructor
19-
toName = (f)-> if 'name' in f then f.name else (''+f).replace(/^function\s+([^\(]*)[\S\s]+$/im, '$1')
19+
toName = (f)-> if 'name' in f then f.name else (''+f).replace(/^function\s+([^\(]*)[\S\s]+$/im, '$1').trim()
2020
if typeof(ctor) is 'function' then toName(ctor) else tc # [object HTMLDocumentConstructor]
2121

2222
core._normalize = (that)->

0 commit comments

Comments
 (0)