aboutsummaryrefslogtreecommitdiff
path: root/internal/ui/static/js/touch_handler.js
diff options
context:
space:
mode:
authorGravatar jvoisin <julien.voisin@dustri.org> 2024-03-05 18:00:21 +0100
committerGravatar Frédéric Guillot <f@miniflux.net> 2024-03-05 19:31:50 -0800
commit3d0126be0b8a603401b7593250f80b0a8042b995 (patch)
tree7d29eb5c48444256c47403536a431597f96da293 /internal/ui/static/js/touch_handler.js
parenteda2e2f3f5c278e44e2def72caedc33667a0fb6c (diff)
downloadv2-3d0126be0b8a603401b7593250f80b0a8042b995.tar.gz
v2-3d0126be0b8a603401b7593250f80b0a8042b995.tar.zst
v2-3d0126be0b8a603401b7593250f80b0a8042b995.zip
Speed the sanitizer up a bit, again
- allow youtube urls to start with `www` - use `strings.Builder` instead of a `bytes.Buffer` - use a `strings.NewReader` instead of a `bytes.NewBufferString` - sprinkles a couple of `continue` to make the code-flow more obvious - inline calls to `inList`, and put their parameters in the right order - simplify isPixelTracker - simplify `isValidIframeSource`, by extracting the hostname and comparing it directly, instead of using the full url and checking if it starts with multiple variations of the same one (`//`, `http:`, `https://` multiplied by ``/`www.`) - add a benchmark
Diffstat (limited to 'internal/ui/static/js/touch_handler.js')
0 files changed, 0 insertions, 0 deletions