Last modified: 2014-02-12 23:38:11 UTC
norm() currently behaves as rmwhitespace(rmspecials(rmdoubles(ccnorm(arg1)))) this has the drawback that whitespace is removed last. With fairly common vandalism edits, we have stuff like "G G G G GAY!". If doubles are removed before repetition is removed, the list of G's are unrecognised. I propose to either change $s = $this->ccnorm( $s ); $s = $this->rmdoubles( $s ); $s = $this->rmspecials( $s ); $s = $this->rmwhitespace( $s ); to $s = $this->ccnorm( $s ); $s = $this->rmspecials( $s ); $s = $this->rmwhitespace( $s ); $s = $this->rmdoubles( $s ); or to make a new function agrNorm() (for agressive norm) that mimics the behaviour of norm, but with the second operation order, not to break backwards compatibility.