Fixes the eating of prefix characters:

;:.-/\?!
This commit is contained in:
Nathanael Anderson 2013-10-24 12:43:25 -05:00
parent 96bba3a035
commit e5bbe4dfce
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
# This regular expression is used for splitting a string into wrappable words
WORD_RE = /([^ ,\/!.?:;\-\n]+[ ,\/!.?:;\-]*)|\n/g
WORD_RE = /([^ ,\/!.?:;\-\n]*[ ,\/!.?:;\-]*)|\n/g
{EventEmitter} = require 'events'
class LineWrapper extends EventEmitter

View File

@ -1,4 +1,4 @@
WORD_RE = /([^ ,\/!.?:;\-\n]+[ ,\/!.?:;\-]*)|\n/g
WORD_RE = /([^ ,\/!.?:;\-\n]*[ ,\/!.?:;\-]*)|\n/g
LineWrapper = require '../line_wrapper'
module.exports =