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