mirror of
https://github.com/different-ai/openwork
synced 2026-04-25 17:15:34 +02:00
fix: correct artifact path regex
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@different-ai/openwork",
|
||||
"private": true,
|
||||
"version": "0.1.17",
|
||||
"version": "0.1.18",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "tauri dev",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "openwork"
|
||||
version = "0.1.17"
|
||||
version = "0.1.18"
|
||||
description = "OpenWork"
|
||||
authors = ["Different AI"]
|
||||
edition = "2021"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$schema": "https://schema.tauri.app/config/2",
|
||||
"productName": "OpenWork",
|
||||
"version": "0.1.17",
|
||||
"version": "0.1.18",
|
||||
"identifier": "com.differentai.openwork",
|
||||
"build": {
|
||||
"beforeDevCommand": "pnpm dev:web",
|
||||
|
||||
@@ -144,7 +144,7 @@ export default function SessionView(props: SessionViewProps) {
|
||||
const resolveArtifactPath = (artifact: ArtifactItem) => {
|
||||
const rawPath = artifact.path?.trim();
|
||||
if (!rawPath) return null;
|
||||
if (/^(?:[a-zA-Z]:[\\/]|~[\\/]|\//.test(rawPath)) {
|
||||
if (/^(?:[a-zA-Z]:[\\/]|~[\\/]|\/)/.test(rawPath)) {
|
||||
return rawPath;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user