We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5438dd3 commit 3f4bed4Copy full SHA for 3f4bed4
src/properties.ts
@@ -84,6 +84,9 @@ export function* list(config: Properties): Generator<KeyValuePair> {
84
/**
85
* Finds a value for the given key.
86
*
87
+ * Note that this method has O(n) complexity. If you want to read the file
88
+ * effectively, use `toObject` or `toMap` functions.
89
+ *
90
* @param config Java properties set.
91
* @param key Key name.
92
* @return Found value, or undefined. Value is properly unescaped.
@@ -170,6 +173,12 @@ export const set = (
170
173
export const remove = (config: Properties, key: string): void =>
171
174
set(config, key, undefined)
172
175
176
+/**
177
+ * Find value indices.
178
179
+ * @param lines Lines array.
180
+ * @param key Key to be found.
181
+ */
182
const findValue = (
183
lines: string[],
184
key: string
0 commit comments