joxeankoret / diaphora

Diaphora, the most advanced Free and Open Source program diffing tool.
http://diaphora.re
GNU Affero General Public License v3.0
3.58k stars 371 forks source link

Simple fix for re.error in pygments/util #244

Closed kbandla closed 1 year ago

kbandla commented 1 year ago

Moved the global flags to the beginning of the regex, to be compatible with Python 3.7 and later. Tested with Python 3.7, 3.8, 3.9 and 3.11 on IDA 8.1 👍 Fixes issue #243

Note: A more comprehensive PR (#240) is also available that will upgrade pygments to 2.13.

joxeankoret commented 1 year ago

Thank you! I will take a look, but I agree that the proper fix is, most likely, upgrading pygments.

joxeankoret commented 1 year ago

I have updated to pygments version 2.13.0 with commit 9a852b5c04c318f1844821d4a17026204c395155. Thank you very much for reporting and sending the PR!