File tree Expand file tree Collapse file tree 3 files changed +24
-0
lines changed
Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -681,6 +681,7 @@ Examples:
681681- ❌ ` https://api.trigger.dev/\finternal `
682682- ❌ ` https://api.trigger.dev/\rinternal `
683683- ❌ ` https://api.trigger.dev/\u200Binternal `
684+ - ❌ ` https://api.trigger.dev/\u202Finternal `
684685- ❌ ` https://api.trigger.dev/\uFEFFinternal `
685686
686687Validation errors use these exact messages:
Original file line number Diff line number Diff line change @@ -188,6 +188,7 @@ Examples:
188188- ❌ ` https://api.trigger.dev/\finternal ` (internal form-feed characters)
189189- ❌ ` https://api.trigger.dev/\rinternal ` (internal carriage-return characters)
190190- ❌ ` https://api.trigger.dev/\u200Binternal ` (internal zero-width-space characters)
191+ - ❌ ` https://api.trigger.dev/\u202Finternal ` (internal narrow no-break space characters)
191192- ❌ ` https://api.trigger.dev/\uFEFFinternal ` (internal BOM characters)
192193
193194Validation errors use these exact messages:
Original file line number Diff line number Diff line change @@ -775,6 +775,17 @@ describe("TriggerChatTransport", function () {
775775 } ) . toThrowError ( "baseURL must not contain internal whitespace characters" ) ;
776776 } ) ;
777777
778+ it ( "throws when baseURL contains internal narrow no-break space characters" , function ( ) {
779+ expect ( function ( ) {
780+ new TriggerChatTransport ( {
781+ task : "chat-task" ,
782+ accessToken : "pk_trigger" ,
783+ baseURL : "https://api.trigger.dev/\u202Finternal" ,
784+ stream : "chat-stream" ,
785+ } ) ;
786+ } ) . toThrowError ( "baseURL must not contain internal whitespace characters" ) ;
787+ } ) ;
788+
778789 it ( "throws when baseURL contains internal carriage-return characters" , function ( ) {
779790 expect ( function ( ) {
780791 new TriggerChatTransport ( {
@@ -3459,6 +3470,17 @@ describe("TriggerChatTransport", function () {
34593470 } ) . toThrowError ( "baseURL must not contain internal whitespace characters" ) ;
34603471 } ) ;
34613472
3473+ it ( "throws from factory when baseURL contains internal narrow no-break space characters" , function ( ) {
3474+ expect ( function ( ) {
3475+ createTriggerChatTransport ( {
3476+ task : "chat-task" ,
3477+ accessToken : "pk_trigger" ,
3478+ baseURL : "https://api.trigger.dev/\u202Finternal" ,
3479+ stream : "chat-stream" ,
3480+ } ) ;
3481+ } ) . toThrowError ( "baseURL must not contain internal whitespace characters" ) ;
3482+ } ) ;
3483+
34623484 it ( "throws from factory when baseURL contains internal carriage-return characters" , function ( ) {
34633485 expect ( function ( ) {
34643486 createTriggerChatTransport ( {
You can’t perform that action at this time.
0 commit comments