dsh-chat-link-actions 0.2.13 → 0.2.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client.js +1 -0
- package/package.json +1 -1
package/client.js
CHANGED
|
@@ -188,6 +188,7 @@ window.__ModuleLoader__.load({
|
|
|
188
188
|
if (/^\/[A-Za-z]:[\\/]/.test(candidate)) candidate = candidate.slice(1);
|
|
189
189
|
}
|
|
190
190
|
if (/^[A-Za-z]:(?![\\/])/u.test(candidate)) candidate = candidate.slice(0, 2) + "/" + candidate.slice(2);
|
|
191
|
+
if (!/^(?:[A-Za-z]:[\\/]?|[\\/]{1,2})$/u.test(candidate)) candidate = candidate.replace(/[\\/]+$/u, "");
|
|
191
192
|
return looksAbsolute(candidate) ? candidate : null;
|
|
192
193
|
}
|
|
193
194
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-chat-link-actions",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.14",
|
|
4
4
|
"description": "Right-click actions on file links in the DSH transcript: quote the path into the composer, or reveal the file in the OS file manager. Menus are drawn in the app's own style, never the system one.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|