mirror of
https://github.com/discourse/discourse-table-builder.git
synced 2025-02-17 17:04:42 +00:00
Previously, the regex was catching uploads as well as tables. This change ensures only strict tables are matched by requiring that matches start with the pipe character. Also adds a unit test for `findTableRegex` to describe the expected behaviour of the helper.