next.js
5a2f2e82 - Perf: Use charCodeAt in removeTrailingSlash (#91384)

Commit
18 hours ago
Perf: Use charCodeAt in removeTrailingSlash (#91384) Removes the regex usage for a simpler string replacement version as it only reads from the end. Uses charCodeAt to avoid creating another string. --------- Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
Author
Parents
Loading