When running rails s to serve a local development instance, a warning is given:
warning: character class has '-' without escape: /[a-z0-9-.]+\.ngrok\-free\.app/
Nothing is broken. Ruby understands that the third hyphen inside the square brackets is a literal hyphen, not a range indicator. The regex already matches exactly what it should. The only problem is the warning, causing clutter in the terminal.
This pull request escapes the hyphen in order to fix the warning. There is no change to functionality.
When running
rails s
to serve a local development instance, a warning is given:Nothing is broken. Ruby understands that the third hyphen inside the square brackets is a literal hyphen, not a range indicator. The regex already matches exactly what it should. The only problem is the warning, causing clutter in the terminal.
This pull request escapes the hyphen in order to fix the warning. There is no change to functionality.