[openstreetmap/openstreetmap-website] Fix warning on unescaped hyphen in regexp (PR #4600)
Andy Allan
notifications at github.com
Wed Mar 20 17:11:12 UTC 2024
```bash
$ bundle exec rails test test/system/user_email_change_test.rb
/home/andy/src/openstreetmap-website/test/system/user_email_change_test.rb:24: warning: character class has '-' without escape: /\/user\/confirm-email\?confirm_string=[A-Za-z0-9-_%]+\s/
/home/andy/src/openstreetmap-website/test/system/user_email_change_test.rb:26: warning: character class has '-' without escape
/home/andy/.rbenv/versions/3.0.6/lib/ruby/gems/3.0.0/gems/bootsnap-1.18.3/lib/bootsnap/compile_cache/iseq.rb:53: warning: character class has '-' without escape: /\/user\/confirm-email\?confirm_string=[A-Za-z0-9-_%]+\s/
/home/andy/.rbenv/versions/3.0.6/lib/ruby/gems/3.0.0/gems/bootsnap-1.18.3/lib/bootsnap/compile_cache/iseq.rb:53: warning: character class has '-' without escape
```
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/4600
-- Commit Summary --
* Fix warning on unescaped hyphen in regexp
-- File Changes --
M test/system/user_email_change_test.rb (4)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/4600.patch
https://github.com/openstreetmap/openstreetmap-website/pull/4600.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4600
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4600 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240320/5f84ad75/attachment-0001.htm>
More information about the rails-dev
mailing list