17 November 2020
2 August 2020
6 January 2020
22 December 2019
3 November 2019
Changed protection level for "Module:String": Cascade-protected from main page, so no point in enabling TE ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite))m
27 October 2019
22 October 2019
30 August 2019
Protected "Module:String": Highly visible template ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only administrators] (indefinite))m
27 June 2019
copy fixed comment from sandbox: this has been wrong for years, and when I corrected it years ago, it just got overwritten later, so rather tan see it happen again, I'm just making the change in the live module now
27 May 2019
Implement the merge of Module:Join, Module:Str endswith, Module:PatternCount and Module:Text count into this module per their TfDs. Review and discussion is at https://en.wikipedia.org/w/index.php?title=Module_talk:String&oldid=899040020#Edit_request_to_implement_merges
13 May 2019
update renamed variable
export str._match function for use in other modules - syncing from sandbox
4 May 2019
use tabs instead of spaces, and remove trailing whitespacem
add an escapePattern function for escaping Lua patterns
4 March 2019
Changed protection level for "Module:String": request at RfP ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))m
26 April 2013
Add "rep" function per request by User:קיפודנחש at Wikipedia:Lua requests#Template:Loop and Template:Loop15. Copied from sandbox.
26 February 2013
25 February 2013
adds updated match support with wider parameter choices, whitespace handling, etc.
fix pattern escape in replace function
+Unit tests for this module are available at Module:String/tests.
accommodate the commonly used "no_category" function
improves commenting, adds whitespace and error handling to sub, improvements to error handling generally.
24 February 2013
add description and whitespace handling option for len
include more generic replacement function
Continuing trials and tribulations of string trimming and Wikipedia template quirks
22 February 2013
Update to allow for unnamed parameters. This is necessary because some string function need to preserve leading / trailing whitespace in order to work properly.
add support for finding the position of a string or pattern inside another string.
21 February 2013
Oh, the existing code is 0-based
+ substr variant that takes a length instead of an ending position
have sub return more than one character (broken by ID 538979768)