Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit c7fcbfc

Browse files
Fix character getter API usage in stripLeftSlashes/stripRightSlashes (#53299)
1 parent a22270b commit c7fcbfc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/web_ui/flutter_js/src/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function joinPathSegments(...segments) {
2222
function stripLeftSlashes(s) {
2323
let i = 0;
2424
while (i < s.length) {
25-
if (s.charCodeAt(i) !== "/") {
25+
if (s.charAt(i) !== "/") {
2626
break;
2727
}
2828
i++;
@@ -33,7 +33,7 @@ function stripLeftSlashes(s) {
3333
function stripRightSlashes(s) {
3434
let i = s.length;
3535
while (i > 0) {
36-
if (s.charCodeAt(i - 1) !== "/") {
36+
if (s.charAt(i - 1) !== "/") {
3737
break;
3838
}
3939
i--;

0 commit comments

Comments
 (0)