File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ async function stepHandler(
109109 }
110110
111111 // Validate identifier format based on type
112- const identifier = input . identifier . trim ( ) ;
112+ let identifier = input . identifier . trim ( ) ;
113113 const identifierType = input . identifierType || "domain" ;
114114
115115 if ( identifierType === "domain" ) {
@@ -120,14 +120,16 @@ async function stepHandler(
120120 } ;
121121 }
122122 } else if ( identifierType === "ticker" ) {
123- if ( ! / ^ [ A - Z ] { 1 , 5 } $ / . test ( identifier . toUpperCase ( ) ) ) {
123+ identifier = identifier . toUpperCase ( ) ;
124+ if ( ! / ^ [ A - Z ] { 1 , 5 } $ / . test ( identifier ) ) {
124125 return {
125126 success : false ,
126127 error : "Invalid ticker format. Expected 1-5 uppercase letters (e.g., NKE)" ,
127128 } ;
128129 }
129130 } else if ( identifierType === "isin" ) {
130- if ( ! / ^ [ A - Z ] { 2 } [ A - Z 0 - 9 ] { 10 } $ / . test ( identifier . toUpperCase ( ) ) ) {
131+ identifier = identifier . toUpperCase ( ) ;
132+ if ( ! / ^ [ A - Z ] { 2 } [ A - Z 0 - 9 ] { 10 } $ / . test ( identifier ) ) {
131133 return {
132134 success : false ,
133135 error : "Invalid ISIN format. Expected 12 characters starting with country code (e.g., US6541061031)" ,
Original file line number Diff line number Diff line change 1616
1717import "./ai-gateway" ;
1818import "./blob" ;
19+ import "./brandfetch" ;
1920import "./fal" ;
2021import "./firecrawl" ;
2122import "./github" ;
You can’t perform that action at this time.
0 commit comments