Jump to content

Module:Smyth/sandbox: Revision history


For any version listed below, click on its date to view it. For more help, see Help:Page history and Help:Edit summary. (cur) = difference from current version, (prev) = difference from preceding version, m = minor edit, → = section edit, ← = automatic edit summary

11 July 2023

7 May 2023

  • curprev 17:1117:11, 7 May 2023 Lemondoge talk contribs 2,138 bytes −77 Theoretically, this can't happen either - gmatch will give an empty string for postscripts and separators if the first capture group matches but the second/third ones match empty strings. postscripts[1] would be nil if the line 46 else branch was reached, but we can just set postscripts[1] = "" there. Also, making `n` a local variable, and moving it a bit further up undo

6 May 2023

  • curprev 17:3017:30, 6 May 2023 Lemondoge talk contribs 2,215 bytes −21 will never be an empty string undo
  • curprev 17:1017:10, 6 May 2023 Lemondoge talk contribs 2,236 bytes +2,236 Create sandbox version of Module:Smyth. Simplifications: remove `if sections[n] == "" or sections[n] == nil` condition, as it will never trigger (first match requires at least one character to be consumed). Correct goof; #table is never nil, so it was probably meant to be #sections == 0. Eliminate similar "if sections[i] == nil or ..."; no value of sections is ever an empty string, and unless this module is severely haunted, there shouldn't be any gaps.