Skip to content

Commit 10b1379

Browse files
committed
use let instead of var
1 parent 7bc9362 commit 10b1379

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ export function slugify(str: string): string {
2121
str = str.toLowerCase();
2222

2323
// remove accents, swap ñ for n, etc
24-
var from = "àáäâèéëêìíïîòóöôùúüûñç·/_,:;";
25-
var to = "aaaaeeeeiiiioooouuuunc------";
26-
for (var i = 0, l = from.length; i < l; i++) {
24+
let from = "àáäâèéëêìíïîòóöôùúüûñç·/_,:;";
25+
let to = "aaaaeeeeiiiioooouuuunc------";
26+
for (let i = 0, l = from.length; i < l; i++) {
2727
str = str.replace(new RegExp(from.charAt(i), "g"), to.charAt(i));
2828
}
2929

0 commit comments

Comments
 (0)