Title: use damerau-levenshtein distance instead of direct comparison by gsayson · Pull Request #370 · Java-Discord/JavaBot · GitHub
Open Graph Title: use damerau-levenshtein distance instead of direct comparison by gsayson · Pull Request #370 · Java-Discord/JavaBot
X Title: use damerau-levenshtein distance instead of direct comparison by gsayson · Pull Request #370 · Java-Discord/JavaBot
Description: In the original implementation of HugListener, a simple equality check was used. This resulted in plenty of easy bypasses such as "fug" and "fck". This PR improves the detection mechanism such that instead of an equality check being used, a similarity check is used to identify some bypasses through the Damerau-Levenshtein algorithm. Given a string, the algorithm measures the number of transpositions, substitutions, insertions, or deletions, of a character in order to match the string "fuck".
Open Graph Description: In the original implementation of HugListener, a simple equality check was used. This resulted in plenty of easy bypasses such as "fug" and "fck". This PR improves the detection...
X Description: In the original implementation of HugListener, a simple equality check was used. This resulted in plenty of easy bypasses such as "fug" and "fck". This PR improv...
Opengraph URL: https://github.com/Java-Discord/JavaBot/pull/370
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:c2049e97-e4f4-ca00-a4f8-03dd0475948a |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 8BBE:70438:2300FE7:2E78703:6971B912 |
| html-safe-nonce | a6500802b32a596845703f8f413c3d311a28ee33b0406dff27d932fdb3cdda93 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QkJFOjcwNDM4OjIzMDBGRTc6MkU3ODcwMzo2OTcxQjkxMiIsInZpc2l0b3JfaWQiOiIxMzA2NDM2ODEwMTk5NjQ0NDM0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 01109137e0166a88a933c9408b506b41d794454c98a248bdf35848eba6fe6615 |
| hovercard-subject-tag | pull_request:1141401110 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/Java-Discord/JavaBot/pull/370/checks |
| twitter:image | https://avatars.githubusercontent.com/u/106905585?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/106905585?s=400&v=4 |
| og:image:alt | In the original implementation of HugListener, a simple equality check was used. This resulted in plenty of easy bypasses such as "fug" and "fck". This PR improves the detection... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | c3b677fea7de290a6c0d1c9ccd6c9909b6a527cf8ee079649e09dc78092d24f1 |
| turbo-cache-control | no-preview |
| go-import | github.com/Java-Discord/JavaBot git https://github.com/Java-Discord/JavaBot.git |
| octolytics-dimension-user_id | 77415047 |
| octolytics-dimension-user_login | Java-Discord |
| octolytics-dimension-repository_id | 371822717 |
| octolytics-dimension-repository_nwo | Java-Discord/JavaBot |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 371822717 |
| octolytics-dimension-repository_network_root_nwo | Java-Discord/JavaBot |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 29d7fcca69cafb91ec8a596aaf222fd46e9bc934 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width