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/\u200Cinternal `
684685- ❌ ` https://api.trigger.dev/\u202Finternal `
685686- ❌ ` https://api.trigger.dev/\u2028internal `
686687- ❌ ` https://api.trigger.dev/\u2029internal `
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/\u200Cinternal ` (internal zero-width-non-joiner characters)
191192- ❌ ` https://api.trigger.dev/\u202Finternal ` (internal narrow no-break space characters)
192193- ❌ ` https://api.trigger.dev/\u2028internal ` (internal line-separator characters)
193194- ❌ ` https://api.trigger.dev/\u2029internal ` (internal paragraph-separator characters)
Original file line number Diff line number Diff line change @@ -841,6 +841,17 @@ describe("TriggerChatTransport", function () {
841841 } ) . toThrowError ( "baseURL must not contain internal whitespace characters" ) ;
842842 } ) ;
843843
844+ it ( "throws when baseURL contains internal zero-width-non-joiner characters" , function ( ) {
845+ expect ( function ( ) {
846+ new TriggerChatTransport ( {
847+ task : "chat-task" ,
848+ accessToken : "pk_trigger" ,
849+ baseURL : "https://api.trigger.dev/\u200Cinternal" ,
850+ stream : "chat-stream" ,
851+ } ) ;
852+ } ) . toThrowError ( "baseURL must not contain internal whitespace characters" ) ;
853+ } ) ;
854+
844855 it ( "throws when baseURL contains internal word-joiner characters" , function ( ) {
845856 expect ( function ( ) {
846857 new TriggerChatTransport ( {
@@ -3591,6 +3602,17 @@ describe("TriggerChatTransport", function () {
35913602 } ) . toThrowError ( "baseURL must not contain internal whitespace characters" ) ;
35923603 } ) ;
35933604
3605+ it ( "throws from factory when baseURL contains internal zero-width-non-joiner characters" , function ( ) {
3606+ expect ( function ( ) {
3607+ createTriggerChatTransport ( {
3608+ task : "chat-task" ,
3609+ accessToken : "pk_trigger" ,
3610+ baseURL : "https://api.trigger.dev/\u200Cinternal" ,
3611+ stream : "chat-stream" ,
3612+ } ) ;
3613+ } ) . toThrowError ( "baseURL must not contain internal whitespace characters" ) ;
3614+ } ) ;
3615+
35943616 it ( "throws from factory when baseURL contains internal word-joiner characters" , function ( ) {
35953617 expect ( function ( ) {
35963618 createTriggerChatTransport ( {
You can’t perform that action at this time.
0 commit comments