Skip to content

Commit

Permalink
fix(utils): [normalizeLib] lowercase possible option before evaluating
Browse files Browse the repository at this point in the history
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
  • Loading branch information
unicornware committed Feb 7, 2023
1 parent e428ee6 commit 715b9d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/normalize-lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import LIB from './lib'
const normalizeLib = (option: unknown): LibFile[] => {
return (Array.isArray(option) ? option : [])
.filter(item => isString(item))
.map((name: string) => LIB.get(name as Lowercase<Lib>))
.map((name: string) => LIB.get(name.toLowerCase() as Lowercase<Lib>))
.filter(file => !isUndefined(file)) as LibFile[]
}

Expand Down

0 comments on commit 715b9d9

Please sign in to comment.