Commit Graph

6 Commits

Author SHA1 Message Date
Taylor Blau
50386ad374 tools/str_test: use `` to make reading escaped-quotes easier 2017-02-21 11:50:55 -07:00
Taylor Blau
a35f0759de tools: handle empty pairs of balanced quotes
If a quote is empty on its own, i.e., '', match an empty string. Otherwise, if
the quote is empty and inside another set of balanced quotes, treat it as-is,
i.e., "foo """ matches []string{"foo \"\""}.
2017-02-21 11:45:52 -07:00
Taylor Blau
7ec512c72f tools: omit outer quotes quotes in matches 2017-02-21 11:32:28 -07:00
Taylor Blau
4a25341669 tools/str_tools: remove use of t.Run to build below Go1.8 2017-02-21 09:53:20 -07:00
Taylor Blau
20618fd311 tools/str_test: demote case description out of struct 2017-02-19 13:02:39 -07:00
Taylor Blau
9a73171f21 tools: implement tools.QuotedFields 2017-02-18 15:46:11 -07:00