Page MenuHomePhabricator

Parentheticals stripped improperly
Closed, DuplicatePublic

Description

Steps to reproduce

Go to:

  1. https://en.wikipedia.beta.wmflabs.org/wiki/Planet
  2. Hover over “India”

Observed behavior: script error is stripped, but the parentheses remain
Expected behavior: parenthetical should be stripped

Event Timeline

This is because there's an unbalanced closing parenthesis in the first sentence of the page:

see also the official names of India),

As discussed, if there's an unbalanced parenthesis in the extract, Page Previews will not strip parentheticals.