Page MenuHomePhabricator

new #pos functions differs from version in StringFunctions (SVN 1.16)
Closed, ResolvedPublic

Description

The definition of the behaviour of pos in http://www.mediawiki.org/wiki/Extension:StringFunctions is:

"If the search term is found, the return value is a zero-based integer of the first position within the string. If the search term is not found, the function returns an empty string."

The current revision SVN 51470 of String functions 1.2.0 returns -1 if the string is not found.

Wikis which had string functions installed will currently no longer display their templates correctly.


Version: unspecified
Severity: critical

Details

Reference
bz19078

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:41 PM
bzimport added a project: ParserFunctions.
bzimport set Reference to bz19078.
bzimport added a subscriber: Unknown Object (MLST).