mirror of
https://github.com/hanzoai/icons.git
synced 2026-09-24 16:59:52 +00:00
π fix: bound NanoBanana regex to avoid matching unrelated Gemini image models
Address Codex review feedback on #347 β dropping the `$` anchor let the pattern match any Gemini id with an -image-/-pro-image- prefix (e.g. gemini-2.0-flash-image-generation), not just NanoBanana variants.
This commit is contained in:
@@ -173,7 +173,7 @@ export const rnModelMappings: RNModelMapping[] = [
|
||||
keywords: [
|
||||
'gemini-3.1-flash-image-preview',
|
||||
'gemini-3-pro-image-preview',
|
||||
'gemini-\\d+(?:\\.\\d+)?-(?:flash(?:-lite)?|pro)-image(?:-preview)?',
|
||||
'gemini-\\d+(?:\\.\\d+)?-(?:flash(?:-lite)?|pro)-image(?:-preview)?(?::|$)',
|
||||
'nanobanana',
|
||||
'nano-banana',
|
||||
],
|
||||
|
||||
@@ -175,7 +175,7 @@ export const modelMappings: ModelMapping[] = [
|
||||
keywords: [
|
||||
'gemini-3.1-flash-image-preview',
|
||||
'gemini-3-pro-image-preview',
|
||||
'gemini-\\d+(?:\\.\\d+)?-(?:flash(?:-lite)?|pro)-image(?:-preview)?',
|
||||
'gemini-\\d+(?:\\.\\d+)?-(?:flash(?:-lite)?|pro)-image(?:-preview)?(?::|$)',
|
||||
'nanobanana',
|
||||
'nano-banana',
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user