Fixed an infinite loop bug for pattern.repeat:0
Example added to the repository
Screenshot