Module:CommaSplit: Revision history

From Terra Invicta Official Wiki

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

19 January 2026

  • curprev 05:0205:02, 19 January 2026 Redwah talk contribs 978 bytes +978 Created page with "-- Helper Module for splitting lines. local p = {} local slen = string.len local sfind = string.find local ssub = string.sub -- Splits the line on the commas. -- Special handling made for one set of double quotations. -- Someone better at coding than I am please generalize this to handle multiple quotations and nested quotations. function p.CommaSplit(text) local ret = {} local s, l = 1, slen( text ) while s do local e, n = sfind( text, ',', s, true)..."