Skip to content

Commit

Permalink
Merge branch 'dev_indentiifer_arks' of https://github.com/gleanerio/g…
Browse files Browse the repository at this point in the history
…leaner into dev_ec

# Conflicts:
#	runConfigurations/cli batch --cfgName ecrr (1).run.xml
  • Loading branch information
valentinedwv committed Sep 28, 2023
2 parents d218059 + 11809d3 commit 2a0f048
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/common/identifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,12 @@ func GetIdentiferByPaths(jsonpaths []string, jsonld string) ([]string, string, e

func url2Path(idstring string) string {
u, err := url.Parse(idstring)
if err != nil {
if err != nil || u.Path == "" {
return idstring
}

return u.Path[1:]

}
func encodeark(arkid string) string {
arkid = strings.Replace(arkid, ":/", "_", 1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
</ENTRIES>
</EXTENSION>
<kind value="FILE" />
<package value="github.com/gleanerio/gleaner" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$/cmd/glcon/main.go" />
<method v="2" />
Expand Down

0 comments on commit 2a0f048

Please sign in to comment.