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 @@ -683,6 +683,7 @@ Examples:
683683- ❌ ` https://api.trigger.dev/\u200Binternal `
684684- ❌ ` https://api.trigger.dev/\u202Finternal `
685685- ❌ ` https://api.trigger.dev/\u2028internal `
686+ - ❌ ` https://api.trigger.dev/\u2029internal `
686687- ❌ ` https://api.trigger.dev/\uFEFFinternal `
687688
688689Validation errors use these exact messages:
Original file line number Diff line number Diff line change @@ -190,6 +190,7 @@ Examples:
190190- ❌ ` https://api.trigger.dev/\u200Binternal ` (internal zero-width-space characters)
191191- ❌ ` https://api.trigger.dev/\u202Finternal ` (internal narrow no-break space characters)
192192- ❌ ` https://api.trigger.dev/\u2028internal ` (internal line-separator characters)
193+ - ❌ ` https://api.trigger.dev/\u2029internal ` (internal paragraph-separator characters)
193194- ❌ ` https://api.trigger.dev/\uFEFFinternal ` (internal BOM characters)
194195
195196Validation errors use these exact messages:
Original file line number Diff line number Diff line change @@ -797,6 +797,17 @@ describe("TriggerChatTransport", function () {
797797 } ) . toThrowError ( "baseURL must not contain internal whitespace characters" ) ;
798798 } ) ;
799799
800+ it ( "throws when baseURL contains internal paragraph-separator characters" , function ( ) {
801+ expect ( function ( ) {
802+ new TriggerChatTransport ( {
803+ task : "chat-task" ,
804+ accessToken : "pk_trigger" ,
805+ baseURL : "https://api.trigger.dev/\u2029internal" ,
806+ stream : "chat-stream" ,
807+ } ) ;
808+ } ) . toThrowError ( "baseURL must not contain internal whitespace characters" ) ;
809+ } ) ;
810+
800811 it ( "throws when baseURL contains internal carriage-return characters" , function ( ) {
801812 expect ( function ( ) {
802813 new TriggerChatTransport ( {
@@ -3503,6 +3514,17 @@ describe("TriggerChatTransport", function () {
35033514 } ) . toThrowError ( "baseURL must not contain internal whitespace characters" ) ;
35043515 } ) ;
35053516
3517+ it ( "throws from factory when baseURL contains internal paragraph-separator characters" , function ( ) {
3518+ expect ( function ( ) {
3519+ createTriggerChatTransport ( {
3520+ task : "chat-task" ,
3521+ accessToken : "pk_trigger" ,
3522+ baseURL : "https://api.trigger.dev/\u2029internal" ,
3523+ stream : "chat-stream" ,
3524+ } ) ;
3525+ } ) . toThrowError ( "baseURL must not contain internal whitespace characters" ) ;
3526+ } ) ;
3527+
35063528 it ( "throws from factory when baseURL contains internal carriage-return characters" , function ( ) {
35073529 expect ( function ( ) {
35083530 createTriggerChatTransport ( {
You can’t perform that action at this time.
0 commit comments