|
@@ -32,7 +32,7 @@
|
|
|
* ### Restricting access to the {@link open | `open`} API
|
|
|
*
|
|
|
* On the allowlist, `open: true` means that the {@link open} API can be used with any URL,
|
|
|
- * as the argument is validated with the `^https?://` regex.
|
|
|
+ * as the argument is validated with the `^((mailto:\w+)|(tel:\w+)|(https?://\w+)).+` regex.
|
|
|
* You can change that regex by changing the boolean value to a string, e.g. `open: ^https://github.com/`.
|
|
|
*
|
|
|
* ### Restricting access to the {@link Command | `Command`} APIs
|
|
@@ -553,7 +553,7 @@ type CommandEvent =
|
|
|
*
|
|
|
* @param path The path or URL to open.
|
|
|
* This value is matched against the string regex defined on `tauri.conf.json > tauri > allowlist > shell > open`,
|
|
|
- * which defaults to `^https?://`.
|
|
|
+ * which defaults to `^((mailto:\w+)|(tel:\w+)|(https?://\w+)).+`.
|
|
|
* @param openWith The app to open the file or URL with.
|
|
|
* Defaults to the system default application for the specified path type.
|
|
|
*
|