We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
stringRange
1 parent c78e35d commit 02391c9Copy full SHA for 02391c9
1 file changed
src/utils/utils.ts
@@ -12,7 +12,7 @@ export function stringRange(str: string, start: string, end: string): string {
12
let endPos = str.indexOf(end);
13
14
if (startPos === NOT_FOUND || endPos === NOT_FOUND)
15
- throw new Error('Search terms not found');
+ throw new Error(`Search terms not found (${start} ${end})`);
16
17
return str.substring(str.indexOf(start) + start.length, str.indexOf(end));
18
}
0 commit comments