Module:rad-IPA: Difference between revisions

m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
mNo edit summary
mNo edit summary
Line 120: Line 120:
local split_s = {}
local split_s = {}
for i = 1, s_len do
for i = 1, s_len do
  split_s[i] = mw.ustring.gsub(s, i,i)
  split_s[i] = s:sub(i,i)
end
end
if s_len == 0 then
if s_len == 0 then
Line 185: Line 185:
  if type(getData) == "string" and (i == 0 or multiMatch == true) then
  if type(getData) == "string" and (i == 0 or multiMatch == true) then
  append_IPA(getData)
  append_IPA(getData)
  s = mw.ustring.gsub(s, 1, s_len + i - 1)
  s = s:sub(1, s_len + i - 1)
  s_len = s:len(s)
  s_len = s:len(s)
  break
  break