mirror of
https://github.com/foliojs/pdfkit.git
synced 2025-12-08 20:15:54 +00:00
Fixes the eating of prefix characters:
;:.-/\?!
This commit is contained in:
parent
96bba3a035
commit
e5bbe4dfce
@ -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
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
WORD_RE = /([^ ,\/!.?:;\-\n]+[ ,\/!.?:;\-]*)|\n/g
|
||||
WORD_RE = /([^ ,\/!.?:;\-\n]*[ ,\/!.?:;\-]*)|\n/g
|
||||
LineWrapper = require '../line_wrapper'
|
||||
|
||||
module.exports =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user