שינויים
משורה 806:
שורה 806:
− +
שורה 901:
שורה 901:
+
אין תקציר עריכה
local outputPrefix = ''
local outputPrefix = ''
local parts = mw.text.split(dateRangeStr,' +[–%-] +')
local parts = mw.text.split(dateRangeStr,' *[–%-] *')
assert(#parts==2 or #parts==1, "Date range expected format is from - to or from (e.g from - now)")
assert(#parts==2 or #parts==1, "Date range expected format is from - to or from (e.g from - now)")
local res = outputPrefix..lang:formatDuration(dif, diffFormat)
local res = outputPrefix..lang:formatDuration(dif, diffFormat)
-- post process formatDuration which is not good enough
-- post process formatDuration which is not good enough
res= mw.ustring.gsub(res,"כ־([א-ת])","כ%1")
res= mw.ustring.gsub(res,"וגם ([0-9])","ו־%1")
res= mw.ustring.gsub(res,"וגם ([0-9])","ו־%1")
res= mw.ustring.gsub(res,"וגם ([א-ת])","ו%1")
res= mw.ustring.gsub(res,"וגם ([א-ת])","ו%1")