שינויים

נוספו 51 בתים ,  14:43, 9 באוקטובר 2020
מ
אין תקציר עריכה
שורה 806: שורה 806:  
    
 
    
 
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)")
 
 
שורה 901: שורה 901:  
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")
משתמש אלמוני