Skip to content

Commit f668e0b

Browse files
committed
tools: Filter "highlight" case insensitive
There was a problem with a ‘highlight’ that was misunderstood as a spelling mistake in lib-wally. Since ‘hightlight’ is already filtered out, we simply instruct grep to ignore upper/lower case when filtering. Signed-off-by: Peter Neuroth <[email protected]>
1 parent 0f9ca62 commit f668e0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/check-spelling.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
if git --no-pager grep -nHiE 'l[ightn]{6}g|l[ightn]{8}g|ilghtning|lgihtning|lihgtning|ligthning|lighnting|lightinng|lightnnig|lightnign' -- . ':!tools/check-spelling.sh' ':!tests/data/routing_gossip_store' | grep -vE "highlighting|LightningGrpc"; then
3+
if git --no-pager grep -nHiE 'l[ightn]{6}g|l[ightn]{8}g|ilghtning|lgihtning|lihgtning|ligthning|lighnting|lightinng|lightnnig|lightnign' -- . ':!tools/check-spelling.sh' ':!tests/data/routing_gossip_store' | grep -viE "highlighting|LightningGrpc"; then
44
echo "Identified a likely misspelling of the word \"lightning\" (see above). Please fix."
55
echo "Is this warning incorrect? Please teach tools/check-spelling.sh about the exciting new word."
66
exit 1

0 commit comments

Comments
 (0)