tapio / live-server

A simple development http server with live reload capability.
http://tapiov.net/live-server/
4.43k stars 484 forks source link

Use String#includes instead of String#indexOf #337

Closed andria-dev closed 3 months ago

andria-dev commented 4 years ago

Fixes #336

In all instances where String#indexOf was used to determine if a substring existed, I replaced the calls with String#includes.

Affected files:

All tests passed locally with all the changes in this PR 👍