File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ if [ -x "$CACHED_BINARY" ]; then
6161 echo " ✅ Using cached actrun $VERSION "
6262
6363 # Process shared URL if first argument matches the pattern
64- if [ $# -gt 0 ] && [[ " $1 " =~ ^https://app\. actionforge\. dev/shared/(. +\. act)$ ]]; then
64+ if [ $# -gt 0 ] && [[ " $1 " =~ ^https://app\. actionforge\. dev/shared/([a-zA-Z0-9_-] +\. act)$ ]]; then
6565 share_id=" ${BASH_REMATCH[1]} "
6666 echo " 🔗 Fetching shared graph: $share_id "
6767
@@ -134,7 +134,7 @@ chmod +x "$CACHED_BINARY"
134134echo " ✅ Unpacked actrun $VERSION "
135135
136136# Process shared URL if first argument matches the pattern
137- if [ $# -gt 0 ] && [[ " $1 " =~ ^https://app\. actionforge\. dev/shared/(. +\. act)$ ]]; then
137+ if [ $# -gt 0 ] && [[ " $1 " =~ ^https://app\. actionforge\. dev/shared/([a-zA-Z0-9_-] +\. act)$ ]]; then
138138 share_id=" ${BASH_REMATCH[1]} "
139139 echo " 🔗 Fetching shared graph: $share_id "
140140
Original file line number Diff line number Diff line change @@ -1049,7 +1049,7 @@ var sharedURLPattern = regexp.MustCompile(`^https://app\.actionforge\.dev/shared
10491049const shareAPIURL = "https://app.actionforge.dev/api/v2/share/graph/read"
10501050
10511051func IsSharedGraphURL (graphURL string ) bool {
1052- return strings . HasPrefix (graphURL , "https://" )
1052+ return sharedURLPattern . MatchString (graphURL )
10531053}
10541054
10551055func ParseSharedGraphURL (graphURL string ) (string , bool ) {
You can’t perform that action at this time.
0 commit comments