Skip to content

Commit 47b316f

Browse files
committed
chore: update normalize file name func
1 parent 5b56972 commit 47b316f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/uikit-utils/src/shared/regex.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export function getFileExtension(filePath: string) {
7373
return filePath.slice(idx - filePath.length).toLowerCase();
7474
}
7575
export function normalizeFileName(fileName: string, extension: string) {
76-
if (fileName.indexOf(extension)) {
76+
if (fileName.indexOf(extension) > -1) {
7777
return fileName;
7878
} else {
7979
if (extension.indexOf('.') === 0) {

0 commit comments

Comments
 (0)