A bug report was submitted regarding a crash caused by an invalid regular expression in the watched words feature. The issue occurs when enabling regular expressions for watched words that were initially set as wildcard expressions. Specifically, the regex *abc caused a crash because the * operator had no preceding token. RGJ provided a repro case and error details. pfaffman suggested validating regex before saving and adding exception handling. RGJ clarified the cause of the issue. sam proposed validating regex on save and marked it as pr-welcome. RGJ emphasized the need for exception handling around the regexp call. zogstrip confirmed that the issue will be fixed by a pull request.
Dus de regex moet echt gevalideerd worden voordat deze wordt toegestaan? En er moet een redding zijn zodat een ongeldige regex de hele wereld niet kan laten crashen?
What obviously happened here is that the watched words were regular watched words and * was the wildcard, and then watched words regular expressions enabled was enabled.
Het valideren van regex bij het opslaan lijkt erg logisch.\n\nIk plaats hier een pr-welcome op, maar het team zal dit beoordelen en beslissen of het zinvol is om dit de komende weken te doen om ons toekomstige ondersteuning te besparen.
That won’t prevent people entering “normal” wildcard expressions, and then turning on watched words regular expressions enabled, which is what happened here.
I think it just needs an exception handler around the regexp call