Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace regex which allows dubble hyphens by one that does not.
The current version disallows tripple hyphens but allows dubble hyphens. (It also seems overcomplicated) Alternatively we can make it a negative lookbehind instead of a negative lookahead, but the complexity is much higher. See https://regex101.com/r/Xyu0bt/1 for proof the current version matches double hyphens
- Loading branch information