Undo this change back to:

```js
matchers.push(/[0-9]{4}(\/[0-9]{1,2}){2}( [0-9]{1,2}(:[0-9]{2}){2})?/.source);
```

And at the beginning just add a conditional statement to replace the dashes to slashes.