definy.part-bare-name
- description
- The name of a part without 'module.' (the name of a snapshot part is 'module.name')
- type
Fn(module_name: String, name: String) -> String
- expression
fn(module_name$0, name$1) =>
let prefix$2 = @core.string-concat(left: $0, right: ".");
match @std.string-starts-with(value: $1, prefix: $2) {
true =>
@core.string-slice(value: $1, start: @core.string-length(value: $2), end: @core.string-length(value: $1)),
false =>
$1
}- visibility
- public
definy.part-bare-name (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo)
id: 0JzcxjJQ8w6cj7A9gubUZoGGS9F654D9-ZNxQFWkVGo
content hash: 4oFYHgYcXCyfrpO2kWNkuCsfV2oEMobv-qBsQS-pq2U