-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
escape windows in bun upgrade (#12985)
- Loading branch information
Showing
7 changed files
with
99 additions
and
38 deletions.
There are no files selected for viewing
Submodule WebKit
updated
3 files
+9 −9 | .github/workflows/build.yml | |
+1 −1 | Source/cmake/OptionsMSVC.cmake | |
+0 −1 | mac-release.bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { test, expect } from "bun:test"; | ||
import { quickAndDirtyJavaScriptSyntaxHighlighter as highlighter } from "bun:internal-for-testing"; | ||
|
||
test("highlighter", () => { | ||
expect(highlighter("`can do ${123} ${'123'} ${`123`}`").length).toBeLessThan(150); | ||
expect(highlighter("`can do ${123} ${'123'} ${`123`}`123").length).toBeLessThan(150); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
import { escapePowershell } from "bun:internal-for-testing"; | ||
|
||
it("powershell escaping rules", () => { | ||
// This formatter does not include quotes around the string intentionally | ||
expect(escapePowershell("foo")).toBe("foo"); | ||
expect(escapePowershell("foo bar")).toBe("foo bar"); | ||
expect(escapePowershell("foo\" bar")).toBe("foo`\" bar"); | ||
expect(escapePowershell("foo\" `bar")).toBe("foo`\" ``bar"); | ||
expect(escapePowershell("foo\" ``\"bar")).toBe("foo`\" `````\"bar"); | ||
}); |
File renamed without changes.