Restore the "gets expected character types" test, in test/unit/pdf_find_utils_spec.js
, to its intended formatting
This was "broken" by the introduction of Prettier, however a recent update (version `2.1.x`) will now correctly ignore these escape sequences.
This commit is contained in:
parent
54eeaba014
commit
60c9556b66
@ -23,26 +23,26 @@ describe("pdf_find_utils", function () {
|
||||
a: CharacterType.ALPHA_LETTER,
|
||||
"0": CharacterType.ALPHA_LETTER,
|
||||
"5": CharacterType.ALPHA_LETTER,
|
||||
Ä: CharacterType.ALPHA_LETTER, // 'Ä'
|
||||
ä: CharacterType.ALPHA_LETTER, // 'ä'
|
||||
"\xC4": CharacterType.ALPHA_LETTER, // "Ä"
|
||||
"\xE4": CharacterType.ALPHA_LETTER, // "ä"
|
||||
_: CharacterType.ALPHA_LETTER,
|
||||
" ": CharacterType.SPACE,
|
||||
"\t": CharacterType.SPACE,
|
||||
"\r": CharacterType.SPACE,
|
||||
"\n": CharacterType.SPACE,
|
||||
"\xA0": CharacterType.SPACE,
|
||||
"\xA0": CharacterType.SPACE, // nbsp
|
||||
"-": CharacterType.PUNCT,
|
||||
",": CharacterType.PUNCT,
|
||||
".": CharacterType.PUNCT,
|
||||
";": CharacterType.PUNCT,
|
||||
":": CharacterType.PUNCT,
|
||||
"\u2122": CharacterType.ALPHA_LETTER, // trademark
|
||||
ล: CharacterType.THAI_LETTER,
|
||||
䀀: CharacterType.HAN_LETTER,
|
||||
縷: CharacterType.HAN_LETTER,
|
||||
ダ: CharacterType.KATAKANA_LETTER,
|
||||
ぐ: CharacterType.HIRAGANA_LETTER,
|
||||
タ: CharacterType.HALFWIDTH_KATAKANA_LETTER,
|
||||
"\u0E25": CharacterType.THAI_LETTER,
|
||||
"\u4000": CharacterType.HAN_LETTER,
|
||||
"\uF950": CharacterType.HAN_LETTER,
|
||||
"\u30C0": CharacterType.KATAKANA_LETTER,
|
||||
"\u3050": CharacterType.HIRAGANA_LETTER,
|
||||
"\uFF80": CharacterType.HALFWIDTH_KATAKANA_LETTER,
|
||||
};
|
||||
|
||||
for (const character in characters) {
|
||||
|
Loading…
Reference in New Issue
Block a user