mirror of
https://git.freebsd.org/ports.git
synced 2025-05-15 08:41:51 -04:00
Changelog: https://github.com/electron/electron/releases/tag/v31.7.0 Reported by: GitHub (watch releases)
11 lines
610 B
TypeScript
11 lines
610 B
TypeScript
--- electron/lib/browser/api/dialog.ts.orig 2024-10-09 13:53:12 UTC
|
|
+++ electron/lib/browser/api/dialog.ts
|
|
@@ -41,7 +41,7 @@ const normalizeAccessKey = (text: string) => {
|
|
// existing single underscores with a second underscore, replace double
|
|
// ampersands with a single ampersand, and replace a single ampersand with
|
|
// a single underscore
|
|
- if (process.platform === 'linux') {
|
|
+ if (process.platform === 'linux' || process.platform === 'freebsd') {
|
|
return text.replaceAll('_', '__').replaceAll(/&(.?)/g, (match, after) => {
|
|
if (after === '&') return after;
|
|
return `_${after}`;
|