Page MenuHomePhabricator

Parser bug with km² to <sup> tags
Closed, ResolvedPublic


Indeed, it's a bug in WPC with the ">" in the replace part for <Typo word="km²" find="\b(?<!\{)[sS][qQ][-\.\s]+[kK][mM][sS]?\b" replace="km<sup>2</sup>"/>... Will have to work on my parser.

Transferring from Wiki talk.

Event Timeline

WPC has the same issue with the newer rule <Typo word="squared" find="\b([ck]?m|mi)²" replace="$1<sup>2</sup>"/>
For an example, see [[en:Blanket fort]]

NicoV added a subscriber: NicoV.

Should be fixed, will be available in the next release, after I've performed some extra testing (modifying the parser can have strange side effects sometimes...).