Gitiles
Code Review
Sign In
git.clicks.codes
/
Infra
/
NixFiles
/
92e626af4a2e510198089032c4c0709e3568dd0e
/
.
/
lib
/
strings
/
default.nix
blob: dccb09fe31fe9a0538dc8ccd87d8cc6ee671d96c [
file
] [
log
] [
blame
]
# SPDX-FileCopyrightText: 2024 Clicks Codes
#
# SPDX-License-Identifier: GPL-3.0-only
{
lib
,
inputs
,
...
}:
{
strings
=
{
getCommonPrefix
=
a
:
b
:
let
prefixLength
=
lib
.
strings
.
commonPrefixLength a b
;
in
builtins
.
substring
0
prefixLength a
;
};
}