@iconify/utils
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -16,3 +16,3 @@ /** | ||
*/ | ||
export declare const stringToIcon: (value: string, validate?: boolean | undefined, allowSimpleName?: boolean | undefined) => IconifyIconName | null; | ||
export declare const stringToIcon: (value: string, validate?: boolean | undefined, allowSimpleName?: boolean | undefined, provider?: string) => IconifyIconName | null; | ||
/** | ||
@@ -19,0 +19,0 @@ * Check if icon is valid. |
@@ -8,4 +8,3 @@ "use strict"; | ||
*/ | ||
const stringToIcon = (value, validate, allowSimpleName) => { | ||
let provider = ''; | ||
const stringToIcon = (value, validate, allowSimpleName, provider = '') => { | ||
const colonSeparated = value.split(':'); | ||
@@ -12,0 +11,0 @@ // Check for provider with correct '@' at start |
@@ -5,3 +5,3 @@ { | ||
"author": "Vjacheslav Trushkin", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"license": "MIT", | ||
@@ -8,0 +8,0 @@ "bugs": "https://github.com/iconify/iconify/issues", |
Sorry, the diff of this file is not supported yet
110176
1575
80
1
1
0
21