diff --git a/src/nimph/project.nim b/src/nimph/project.nim index f07cdc2..f3f293c 100644 --- a/src/nimph/project.nim +++ b/src/nimph/project.nim @@ -1301,10 +1301,6 @@ proc versionChangingCommits*(project: var Project): VersionTags = proc pathForName*(group: ProjectGroup; name: string): Option[string] = ## try to retrieve the directory for a given import name in the group - {.warning: "replace this with compiler code".} - proc destylize(s: string): string = - result = s.toLowerAscii.replace("_") - let name = name.destylize for project in group.values: if project.importName.destylize == name: diff --git a/src/nimph/spec.nim b/src/nimph/spec.nim index 22de48b..50447c2 100644 --- a/src/nimph/spec.nim +++ b/src/nimph/spec.nim @@ -193,3 +193,8 @@ proc forkTarget*(url: Uri): ForkTargetResult = result.ok = result.owner.len > 0 and result.repo.len > 0 if not result.ok: result.why = &"unable to parse url {result.url}" + +{.warning: "replace this with compiler code".} +proc destylize*(s: string): string = + ## this is how we create a uniformly comparable token + result = s.toLowerAscii.replace("_")