I'm in the process of migrating a script from CS3 to CS5.5. When trying the script with no modifications it causes InDesign to stall, and I have to force close it. After running through the script line by line I found the culprit:
This causes the entire script engine to freeze.
With CS3 it works fine. Also when do I slight change it works fine:
Any idea what's going on? Is it a bug in the scripting engine?
Yes, it is a bug. Also happens if you just target the ESTK.
Any ideas exactly what kind of expressions triggers the bug?
I rewrote my expression to not contain phrases like /(a|b|abc)?/. Instead I use /[ab]?(abc)?/, which is close enough, and seems to not trigger the bug.