devongovett/pdfkit — pull request #103 by pietervandereems (2012-10-31 14:28:27+00:00)
Title: Fix for issue #73, will also work with ???

When calling .text with either an empty string, blank string or a non-matched string (like "???") the extra width calculation will fail because words.length is not possible on a null value.

On the regexp match use the text in an array as default.
This way the text will still be added to the pdf.