mirror of
https://github.com/curl/curl.git
synced 2026-04-15 00:01:41 +03:00
badwords: fix issues found in scripts and other files
Single pass, not enforced. Also: - pyspelling.words: drop `web page` Closes #19572
This commit is contained in:
parent
42c43f695c
commit
ad35ecba97
45 changed files with 104 additions and 105 deletions
8
.github/scripts/cleancmd.pl
vendored
8
.github/scripts/cleancmd.pl
vendored
|
|
@ -16,7 +16,7 @@ use warnings;
|
|||
my @asyms;
|
||||
|
||||
open(S, "<./docs/libcurl/symbols-in-versions")
|
||||
|| die "can't find symbols-in-versions";
|
||||
|| die "cannot find symbols-in-versions";
|
||||
while(<S>) {
|
||||
if(/^([^ ]*) /) {
|
||||
push @asyms, $1;
|
||||
|
|
@ -30,7 +30,7 @@ my @aopts = (
|
|||
);
|
||||
|
||||
open(O, "<./docs/options-in-versions")
|
||||
|| die "can't find options-in-versions";
|
||||
|| die "cannot find options-in-versions";
|
||||
while(<O>) {
|
||||
chomp;
|
||||
if(/^([^ ]+)/) {
|
||||
|
|
@ -50,7 +50,7 @@ while(<O>) {
|
|||
close(O);
|
||||
|
||||
open(C, "<./.github/scripts/spellcheck.curl")
|
||||
|| die "can't find spellcheck.curl";
|
||||
|| die "cannot find spellcheck.curl";
|
||||
while(<C>) {
|
||||
if(/^\#/) {
|
||||
next;
|
||||
|
|
@ -99,7 +99,7 @@ sub process {
|
|||
# *italics*
|
||||
$l =~ s/\*(\S.*?)\*//g;
|
||||
|
||||
# strip out https URLs, we don't want them spellchecked
|
||||
# strip out https URLs, we do not want them spellchecked
|
||||
$l =~ s!https://[a-z0-9\#_/.-]+!!gi;
|
||||
|
||||
$out .= $l;
|
||||
|
|
|
|||
1
.github/scripts/pyspelling.words
vendored
1
.github/scripts/pyspelling.words
vendored
|
|
@ -957,7 +957,6 @@ watchOS
|
|||
WAV
|
||||
WB
|
||||
wcurl
|
||||
web page
|
||||
WebDAV
|
||||
WebOS
|
||||
webpage
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue