Issue #3419394 by quietone, longwave, smustgrave: File mime type and other file related words in the dictionary
(cherry picked from commit f8a2ccac36
)
merge-requests/9720/head
parent
f4f3108294
commit
dfafcf727f
|
@ -17,6 +17,7 @@ class ExtensionMimeTypeGuesser implements MimeTypeGuesserInterface {
|
|||
* Array of mimetypes correlated to the extensions that relate to them.
|
||||
*/
|
||||
protected $defaultMapping = [
|
||||
// cspell:disable
|
||||
'mimetypes' => [
|
||||
0 => 'application/andrew-inset',
|
||||
1 => 'application/atom',
|
||||
|
@ -867,6 +868,7 @@ class ExtensionMimeTypeGuesser implements MimeTypeGuesserInterface {
|
|||
'json' => 361,
|
||||
'avif' => 362,
|
||||
],
|
||||
// cspell:enable
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,8 @@ use Drupal\Component\Utility\Html;
|
|||
use Drupal\Component\Utility\Xss;
|
||||
use Drupal\Core\Site\Settings;
|
||||
|
||||
// cspell:ignore officedocument openxmlformats wordprocessingml
|
||||
|
||||
/**
|
||||
* Defines a class containing utility methods for formatting mail messages.
|
||||
*/
|
||||
|
|
|
@ -11,7 +11,6 @@ allwords
|
|||
alphadecimal
|
||||
ampm
|
||||
anyall
|
||||
applix
|
||||
archiver
|
||||
archivers
|
||||
arrowrefresh
|
||||
|
@ -152,7 +151,6 @@ contextuals
|
|||
controlgroup
|
||||
conv
|
||||
corge
|
||||
cpio
|
||||
createrole
|
||||
createuser
|
||||
crema
|
||||
|
@ -293,7 +291,6 @@ funic
|
|||
gabilondo
|
||||
gids
|
||||
gloop
|
||||
gnumeric
|
||||
googleapis
|
||||
greeking
|
||||
gripsmall
|
||||
|
@ -350,9 +347,6 @@ keypresses
|
|||
keyvalue
|
||||
kinberg
|
||||
kolkata
|
||||
kpresenter
|
||||
kspread
|
||||
kword
|
||||
lamoids
|
||||
languageswitcher
|
||||
libc
|
||||
|
@ -384,13 +378,10 @@ lrdd
|
|||
lstitle
|
||||
ltitle
|
||||
lzma
|
||||
lzop
|
||||
macbinary
|
||||
mainpage
|
||||
mank
|
||||
maryjane
|
||||
matchout
|
||||
mathematica
|
||||
maximumred
|
||||
maxlifetime
|
||||
maynot
|
||||
|
@ -424,7 +415,6 @@ montag
|
|||
msgctxt
|
||||
msgid
|
||||
msgstr
|
||||
msword
|
||||
mucho
|
||||
mulrev
|
||||
mulrevpub
|
||||
|
@ -480,14 +470,11 @@ nyan
|
|||
nyancat
|
||||
nyans
|
||||
oembed
|
||||
officedocument
|
||||
omittable
|
||||
onecol
|
||||
oneplusfourgrid
|
||||
onetwo
|
||||
onewidgetfield
|
||||
opendocument
|
||||
openxmlformats
|
||||
optgroups
|
||||
optin
|
||||
orgchart
|
||||
|
@ -553,7 +540,6 @@ preprocessors
|
|||
prerender
|
||||
prerendered
|
||||
presave
|
||||
presentationml
|
||||
pretransaction
|
||||
preuninstall
|
||||
processlist
|
||||
|
@ -657,13 +643,11 @@ specialchars
|
|||
spiffiness
|
||||
splitbutton
|
||||
splitbuttons
|
||||
spreadsheetml
|
||||
squaresmall
|
||||
squiz
|
||||
squizlabs
|
||||
srcset
|
||||
ssess
|
||||
stardivision
|
||||
starterkit
|
||||
statuscode
|
||||
stdclass
|
||||
|
@ -676,7 +660,6 @@ strikethrough
|
|||
striptags
|
||||
strs
|
||||
sttid
|
||||
stuffit
|
||||
styleguide
|
||||
stylelint
|
||||
stylescombo
|
||||
|
@ -731,7 +714,6 @@ tablesorts
|
|||
tabset
|
||||
tabwidth
|
||||
tappable
|
||||
tarz
|
||||
taskless
|
||||
tcomment
|
||||
templating
|
||||
|
@ -846,8 +828,6 @@ webmozart
|
|||
webroot
|
||||
webservers
|
||||
widthx
|
||||
wmlscript
|
||||
wordprocessingml
|
||||
wordsafe
|
||||
writeln
|
||||
wwwrun
|
||||
|
|
|
@ -4,8 +4,6 @@ declare(strict_types=1);
|
|||
|
||||
namespace Drupal\file;
|
||||
|
||||
// cspell:ignore abiword
|
||||
|
||||
/**
|
||||
* A utility class for working with MIME types.
|
||||
*/
|
||||
|
@ -48,6 +46,7 @@ final class IconMimeTypes {
|
|||
* The generic icon MIME package expected for this file.
|
||||
*/
|
||||
public static function getGenericMimeType(string $mimeType): string | false {
|
||||
// cspell:disable
|
||||
switch ($mimeType) {
|
||||
// Word document types.
|
||||
case 'application/msword':
|
||||
|
@ -171,6 +170,7 @@ final class IconMimeTypes {
|
|||
default:
|
||||
return FALSE;
|
||||
}
|
||||
// cspell:enable
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -6,6 +6,8 @@ namespace Drupal\Tests\file\Kernel;
|
|||
|
||||
use Drupal\KernelTests\KernelTestBase;
|
||||
|
||||
// cspell:ignore msword
|
||||
|
||||
/**
|
||||
* Tests file module deprecations.
|
||||
*
|
||||
|
|
|
@ -18,7 +18,7 @@ use Drupal\user\Entity\User;
|
|||
use GuzzleHttp\RequestOptions;
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
|
||||
// cspell:ignore èxample
|
||||
// cspell:ignore èxample msword
|
||||
|
||||
/**
|
||||
* Tests binary data file upload route.
|
||||
|
|
|
@ -18,7 +18,7 @@ use Drupal\user\Entity\User;
|
|||
use GuzzleHttp\RequestOptions;
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
|
||||
// cspell:ignore èxample
|
||||
// cspell:ignore èxample msword
|
||||
|
||||
/**
|
||||
* Tests binary data file upload route.
|
||||
|
|
|
@ -6,6 +6,8 @@ namespace Drupal\Tests\system\Functional\DrupalKernel;
|
|||
|
||||
use Drupal\Tests\BrowserTestBase;
|
||||
|
||||
// cspell:ignore msword
|
||||
|
||||
/**
|
||||
* Tests content negotiation.
|
||||
*
|
||||
|
|
|
@ -7,6 +7,8 @@ namespace Drupal\Tests\Core\Mail;
|
|||
use Drupal\Core\Mail\MailFormatHelper;
|
||||
use Drupal\Tests\UnitTestCase;
|
||||
|
||||
// cspell:ignore officedocument openxmlformats wordprocessingml
|
||||
|
||||
/**
|
||||
* @coversDefaultClass \Drupal\Core\Mail\MailFormatHelper
|
||||
* @group Mail
|
||||
|
|
Loading…
Reference in New Issue