luci-base: fix UTF handling in super fast hash function
authorPaul Donald <[email protected]>
Sat, 12 Apr 2025 20:04:32 +0000 (22:04 +0200)
committerPaul Donald <[email protected]>
Sat, 12 Apr 2025 20:33:02 +0000 (22:33 +0200)
commit04f2d129d7c5cdbc32b3c7884b30c42f1285e696
tree88642602f21d6cc946a21a8292dada4d8b5135f1
parent5ca9b36a3871e8e64fed4842b3342ee74f57b76a
luci-base: fix UTF handling in super fast hash function

follow-up fix for 2babc47ae2562cc123ea9048197996a0e3a223b1

the previous code did not handle:
-the 4 byte encoding case
-utf-16 surrogate pairs

Signed-off-by: Paul Donald <[email protected]>
modules/luci-base/htdocs/luci-static/resources/cbi.js