realityforge/knife-cookbook-doc — pull request #3 by jgawor (2013-09-05 20:24:25+00:00)
Title: look for a period at the end of a string or followed by a whitespace

If a description for a LWRP contains a filename with an extension (for example, foo.bar) the description generated for the LWRP under the "resources" section would be cut off at the file extension. For example, say the description in the LWRP is "This resource updates foo.bar file" - the description under the "resources" section would be "This resource updates foo." That's because the regex in first_sentence() looks for a first period in the string. I updated the regex to look for a period followed by a whitespace or at the end of the string.