We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b56972 commit 47b316fCopy full SHA for 47b316f
packages/uikit-utils/src/shared/regex.ts
@@ -73,7 +73,7 @@ export function getFileExtension(filePath: string) {
73
return filePath.slice(idx - filePath.length).toLowerCase();
74
}
75
export function normalizeFileName(fileName: string, extension: string) {
76
- if (fileName.indexOf(extension)) {
+ if (fileName.indexOf(extension) > -1) {
77
return fileName;
78
} else {
79
if (extension.indexOf('.') === 0) {
0 commit comments