Details
-
Bug
-
Resolution: Timed out
-
Low
-
1
-
Severity 3 - Minor
-
Description
Summary
Not always does the Table of Context excludes correctly the 'exclude regex' from the search. For example, the regex '^(?![\s\t\w]*$).+}', which should eliminate titles only with spaces, tabs, etc. useful to remove unnecessary titles, works in 'preview' view, but not after we save the page.
Steps to Reproduce
- Create 4 sections in a page
- Add in 3 'h1' headings with text, and h2 in another
- Add a ToC in the other section and add an 'almost empty' h1 heading (with only a space in the title) in this section
- Make sure to select the space and see if it's heading 1
- Add remove regex: '^(?![\s\t\w]*$).+'
- Check if the empty header is included in ToC
Expected Results
It does not include the heading with a single space in preview mode or after saving the page.
Actual Results
It's excluded from the preview mode, but not when we save the page.
Workaround
None so far.