Skip to content

Commit

Permalink
Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
Maikuolan committed Nov 7, 2024
1 parent 9ef6024 commit bd743fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Demojibakefier.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Demojibakefier (last modified: 2023.09.14).
* Demojibakefier (last modified: 2024.11.07).
*
* Intended to normalise the character encoding of a given string to a
* preferred character encoding when the given string's byte sequences don't
Expand Down Expand Up @@ -208,7 +208,7 @@ public function checkConformity(string $String, string $Encoding = ''): bool
return !preg_match('~[' . self::CTRL0 . '\x7F-\x9F\xA1\xAD\xBF-\xDE\xFB-\xFF]~', $String);
}
if ($Encoding === 'ISO-8859-11') {
return !preg_match('~[' . self::CTRL0 . '\X7F-\xA0\xDB-\xDE\xFC-\xFF]~', $String);
return !preg_match('~[' . self::CTRL0 . '\x7F-\xA0\xDB-\xDE\xFC-\xFF]~', $String);
}
if ($Encoding === 'CP1250') { // Windows-1250
return !preg_match('~[' . self::CTRL0 . '\x7F\x81\x83\x88\x98\xAD]~', $String);
Expand All @@ -220,7 +220,7 @@ public function checkConformity(string $String, string $Encoding = ''): bool
return !preg_match('~[' . self::CTRL0 . '\x7F\x81\x8D\x8F\x90\x9D\xAD]~', $String);
}
if ($Encoding === 'CP1253') { // Windows-1253
return !preg_match('~[' . self::CTRL0 . '\X7F\x81\x88\x8A\x8C-\x8F\x90\x98\x9A\x9C-\x9F\xAA\xAD\xD2\xFF]~', $String);
return !preg_match('~[' . self::CTRL0 . '\x7F\x81\x88\x8A\x8C-\x8F\x90\x98\x9A\x9C-\x9F\xAA\xAD\xD2\xFF]~', $String);
}
if ($Encoding === 'CP1254') { // Windows-1254
return !preg_match('~[' . self::CTRL0 . '\x7F\x81\x8D-\x8F\x90\x9D\x9E\xAD]~', $String);
Expand Down

0 comments on commit bd743fa

Please sign in to comment.