Gitiles
Code Review
Sign In
git.clicks.codes
/
Infra
/
NixFiles
/
4d386d1b18de4a8916560703fc5f6554464d40ec
/
.
/
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
;
};
}