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 @@ -666,6 +666,7 @@ Examples:
666666- ✅ `https://api.trigger.dev`
667667- ✅ `https://api.trigger.dev/custom-prefix`
668668- ✅ ` https://api.trigger.dev/custom-prefix/// ` (trimmed + normalized)
669+ - ✅ `\n\thttps://api.trigger.dev/custom-prefix/\t\n` (newline/tab wrappers trimmed)
669670- ✅ `https://api.trigger.dev/custom%20prefix` (percent-encoded whitespace)
670671- ✅ `https://api.trigger.dev/custom%3Fprefix%23segment` (percent-encoded `?` / `#`)
671672- ✅ `\u00A0https://api.trigger.dev/custom-prefix/\u00A0` (non-breaking-space wrapper trimmed)
Original file line number Diff line number Diff line change @@ -173,6 +173,7 @@ Examples:
173173- ✅ `https://api.trigger.dev`
174174- ✅ `https://api.trigger.dev/custom-prefix`
175175- ✅ ` https://api.trigger.dev/custom-prefix/// ` (trimmed + normalized)
176+ - ✅ `\n\thttps://api.trigger.dev/custom-prefix/\t\n` (newline/tab wrappers trimmed)
176177- ✅ `https://api.trigger.dev/custom%20prefix` (percent-encoded whitespace)
177178- ✅ `https://api.trigger.dev/custom%3Fprefix%23segment` (percent-encoded `?` / `#`)
178179- ✅ `\u00A0https://api.trigger.dev/custom-prefix/\u00A0` (non-breaking-space wrapper trimmed)
Original file line number Diff line number Diff line change @@ -1193,6 +1193,17 @@ describe("TriggerChatTransport", function () {
11931193 }).not.toThrow();
11941194 });
11951195
1196+ it("accepts newline-and-tab wrapped baseURL values", function () {
1197+ expect(function () {
1198+ new TriggerChatTransport({
1199+ task: "chat-task",
1200+ accessToken: "pk_trigger",
1201+ baseURL: "\n\thttps://api.trigger.dev/custom-prefix/\t\n",
1202+ stream: "chat-stream",
1203+ });
1204+ }).not.toThrow();
1205+ });
1206+
11961207 it("accepts non-breaking-space wrapped baseURL values", function () {
11971208 expect(function () {
11981209 new TriggerChatTransport({
@@ -4053,6 +4064,17 @@ describe("TriggerChatTransport", function () {
40534064 }).not.toThrow();
40544065 });
40554066
4067+ it("accepts newline-and-tab wrapped baseURL values from factory", function () {
4068+ expect(function () {
4069+ createTriggerChatTransport({
4070+ task: "chat-task",
4071+ accessToken: "pk_trigger",
4072+ baseURL: "\n\thttps://api.trigger.dev/custom-prefix/\t\n",
4073+ stream: "chat-stream",
4074+ });
4075+ }).not.toThrow();
4076+ });
4077+
40564078 it("accepts non-breaking-space wrapped baseURL values from factory", function () {
40574079 expect(function () {
40584080 createTriggerChatTransport({
You can’t perform that action at this time.
0 commit comments