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 @@ -684,6 +684,7 @@ Examples:
684684- ❌ ` https://api.trigger.dev/\u202Finternal `
685685- ❌ ` https://api.trigger.dev/\u2028internal `
686686- ❌ ` https://api.trigger.dev/\u2029internal `
687+ - ❌ ` https://api.trigger.dev/\u2060internal `
687688- ❌ ` https://api.trigger.dev/\uFEFFinternal `
688689
689690Validation errors use these exact messages:
Original file line number Diff line number Diff line change @@ -191,6 +191,7 @@ Examples:
191191- ❌ ` https://api.trigger.dev/\u202Finternal ` (internal narrow no-break space characters)
192192- ❌ ` https://api.trigger.dev/\u2028internal ` (internal line-separator characters)
193193- ❌ ` https://api.trigger.dev/\u2029internal ` (internal paragraph-separator characters)
194+ - ❌ ` https://api.trigger.dev/\u2060internal ` (internal word-joiner characters)
194195- ❌ ` https://api.trigger.dev/\uFEFFinternal ` (internal BOM characters)
195196
196197Validation errors use these exact messages:
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 word-joiner characters" , function ( ) {
845+ expect ( function ( ) {
846+ new TriggerChatTransport ( {
847+ task : "chat-task" ,
848+ accessToken : "pk_trigger" ,
849+ baseURL : "https://api.trigger.dev/\u2060internal" ,
850+ stream : "chat-stream" ,
851+ } ) ;
852+ } ) . toThrowError ( "baseURL must not contain internal whitespace characters" ) ;
853+ } ) ;
854+
844855 it ( "throws when baseURL contains internal BOM characters" , function ( ) {
845856 expect ( function ( ) {
846857 new TriggerChatTransport ( {
@@ -3580,6 +3591,17 @@ describe("TriggerChatTransport", function () {
35803591 } ) . toThrowError ( "baseURL must not contain internal whitespace characters" ) ;
35813592 } ) ;
35823593
3594+ it ( "throws from factory when baseURL contains internal word-joiner characters" , function ( ) {
3595+ expect ( function ( ) {
3596+ createTriggerChatTransport ( {
3597+ task : "chat-task" ,
3598+ accessToken : "pk_trigger" ,
3599+ baseURL : "https://api.trigger.dev/\u2060internal" ,
3600+ stream : "chat-stream" ,
3601+ } ) ;
3602+ } ) . toThrowError ( "baseURL must not contain internal whitespace characters" ) ;
3603+ } ) ;
3604+
35833605 it ( "throws from factory when baseURL contains internal BOM characters" , function ( ) {
35843606 expect ( function ( ) {
35853607 createTriggerChatTransport ( {
You can’t perform that action at this time.
0 commit comments