I found that the startsWith method that can be found in the utils module has unexpected behavior. It works well for most cases except when your pattern is repeated on or more times in your string :
- string: foobar - pattern: foo -> true
- string: foobarfoo - pattern: foo -> false
It's because string.lastIndexOf is use instead of indexOf.