Skip to content

Commit 528223d

Browse files
committed
fix casing
1 parent d9b61c9 commit 528223d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/format/slug.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ export function url_safe_processor(
3737
.replace(/DASH/g, "-");
3838
}
3939

40-
const alphaNumRegex = /[a-zA-Z0-9]/;
41-
const unicodeRegex = /\p{Letter}/u;
40+
const alpha_num_regex = /[a-zA-Z0-9]/;
41+
const unicode_regex = /\p{Letter}/u;
4242

4343
const is_non_alpha_num_unicode = (string: string) =>
44-
!alphaNumRegex.test(string) && unicodeRegex.test(string);
44+
!alpha_num_regex.test(string) && unicode_regex.test(string);
4545

4646
export function unicode_safe_processor(
4747
url: string,
@@ -91,6 +91,7 @@ export function make_session_slug_processor({
9191
const processor = preserve_unicode
9292
? unicode_safe_processor
9393
: url_safe_processor;
94+
9495
const seen = new Set();
9596

9697
return function (url: string) {

0 commit comments

Comments
 (0)