This is derived from now that watchdog reports a failure.
With the following config
this input string is causing a watchdog exception
Watchdog does not occurs anymore in current version.
To catch both case of either a dash or a number, you need to use a custom pattern: