Open syt2 opened 12 months ago
Hi,
DevToysMac
is now archived and deprecated. We just released DevToys 2.0
for Windows, Mac and Linux. This issue may or may have not been addressed in the new version. If the issue persist, we encourage to open a new issue on https://github.com/DevToys-app/DevToys or https://github.com/DevToys-app/DevToys.Tools
See more information about DevToys 2.0 here: https://devtoys.app/blog/announcing-devtoys-2.0-preview
I used the following regular expression:
and the following test text:
It appears that the regular expression's matching complexity is too high, leading to a potential hang in the execution of the code found at the following link: https://github.com/ObuchiYuki/DevToysMac/blob/38d4160838721d7d2beae16a6b3235be5a7f4bb2/DevToys/DevToys/Body/Text/RegexTesterView%2B.swift#L52
Since this code is executed in the main thread, it results in the unresponsiveness of the application. Consequently, during the next launch, the application attempts to restore the previous regular expression matching, triggering the same problematic code execution and leading to a launch failure.