aboutsummaryrefslogtreecommitdiff
path: root/_extensions/protoExtension/proto.lua
blob: cb29c314272cba58990f9abbed8338c50f376a37 (plain)
  1. -- Function to replace variations of Leandre with Léandre.
  2. function Str(el)
  3. i , j = string.find(el.text,"{")
  4. if i ~= nil then a = string.find(el.text,"}")
  5. print(i)
  6. print(string.sub(el.text,i,a))
  7. b = string.sub(el.text,0,i-1)
  8. c = string.sub(el.text,a+1,-1)
  9. el.text = b .. c
  10. end
  11. return el
  12. end