This repository was archived by the owner on Dec 4, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 159159 index += 1 ;
160160 }
161161
162- return result ;
162+ return result . replace ( / \s + $ / , '' ) ;
163163 }
164164
165165 // JSDoc Tag Parser
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ require('should');
3333
3434describe ( 'unwrapComment' , function ( ) {
3535 it ( 'normal' , function ( ) {
36- doctrine . unwrapComment ( '/**\n * @const\n * @const\n */' ) . should . equal ( '\n@const\n@const\n ' ) ;
36+ doctrine . unwrapComment ( '/**\n * @const\n * @const\n */' ) . should . equal ( '\n@const\n@const' ) ;
3737 } ) ;
3838
3939 it ( 'single' , function ( ) {
@@ -46,15 +46,15 @@ describe('unwrapComment', function () {
4646 } ) ;
4747
4848 it ( '2 lines' , function ( ) {
49- doctrine . unwrapComment ( '/**x\n * y\n*/' ) . should . equal ( 'x\ny\n ' ) ;
49+ doctrine . unwrapComment ( '/**x\n * y\n*/' ) . should . equal ( 'x\ny' ) ;
5050 } ) ;
5151
5252 it ( '2 lines with space' , function ( ) {
53- doctrine . unwrapComment ( '/**x\n * y\n*/' ) . should . equal ( 'x\n y\n ' ) ;
53+ doctrine . unwrapComment ( '/**x\n * y\n*/' ) . should . equal ( 'x\n y' ) ;
5454 } ) ;
5555
5656 it ( '3 lines with blank line' , function ( ) {
57- doctrine . unwrapComment ( '/**x\n *\n \* y\n*/' ) . should . equal ( 'x\n\ny\n ' ) ;
57+ doctrine . unwrapComment ( '/**x\n *\n \* y\n*/' ) . should . equal ( 'x\n\ny' ) ;
5858 } ) ;
5959} ) ;
6060/* vim: set sw=4 ts=4 et tw=80 : */
You can’t perform that action at this time.
0 commit comments