slashmili / python-jalali

Jalali calendar binding for Python based on Python's datetime module
http://pypi.python.org/pypi/jdatetime/
Other
343 stars 49 forks source link

fix(strftime): treat %% as an escape sequence #137

Closed 5j9 closed 1 year ago

5j9 commented 1 year ago

Replace re.findall with re.sub. I believe this makes things simpler because there is no longer need for symbol and format arguments in helper functions.

fixes #131

5j9 commented 1 year ago

BTW, I'd like to suggest to delete the master branch of this repository if you don't need it. I got confused while trying to rebase this pull request.