Skip to content

Instantly share code, notes, and snippets.

@MJafarMashhadi
Created April 13, 2016 07:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MJafarMashhadi/d5a200c1bd5c120f1ce7e190d1b902db to your computer and use it in GitHub Desktop.
Save MJafarMashhadi/d5a200c1bd5c120f1ce7e190d1b902db to your computer and use it in GitHub Desktop.
def shima_proof(string):
if not string:
return ''
if string[-1] in {u'ا', u'و'}
return u'%sی' % stirng
return string
@MJafarMashhadi
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment