File tree Expand file tree Collapse file tree 2 files changed +17
-17
lines changed
nlp/expand-contractions/lib
repl/presentation/lib/commands Expand file tree Collapse file tree 2 files changed +17
-17
lines changed Original file line number Diff line number Diff line change 3030* var out = expandContractions( str );
3131* // returns 'I will not be able to get you all out of this one.'
3232*
33- * str = 'It oughtn't to be my fault, because, you know, I didn't know';
33+ * str = 'It oughtn\ 't to be my fault, because, you know, I didn\ 't know';
3434* out = expandContractions( str );
3535* // returns 'It ought not to be my fault, because, you know, I did not know'
3636*/
Original file line number Diff line number Diff line change @@ -46,25 +46,25 @@ function command( pres ) {
4646 var str = repeat ( pres . _opts . newline , pres . height + 1 ) ;
4747 pres . _repl . _ostream . write ( str ) ;
4848 pres . _repl . once ( 'drain' , onDrain ) ;
49+ }
4950
50- /**
51- * Callback invoked upon a `drain` event.
51+ /**
52+ * Callback invoked upon a `drain` event.
53+ *
54+ * @private
55+ */
56+ function onDrain ( ) {
57+ /*
58+ * [ANSI escape sequences][1]:
59+ *
60+ * - `\u001b`: ESC, the escape character
61+ * - `[1T`: scroll down one line
62+ * - `[1G`: move the cursor to the beginning of the line
5263 *
53- * @private
64+ * [1]: https://en.wikipedia.org/wiki/ANSI_escape_code
5465 */
55- function onDrain ( ) {
56- /*
57- * [ANSI escape sequences][1]:
58- *
59- * - `\u001b`: ESC, the escape character
60- * - `[1T`: scroll down one line
61- * - `[1G`: move the cursor to the beginning of the line
62- *
63- * [1]: https://en.wikipedia.org/wiki/ANSI_escape_code
64- */
65- var str = '\u001b[1T\u001b[1G' ;
66- pres . _repl . _ostream . write ( str ) ;
67- }
66+ var str = '\u001b[1T\u001b[1G' ;
67+ pres . _repl . _ostream . write ( str ) ;
6868 }
6969}
7070
You can’t perform that action at this time.
0 commit comments