You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-13 00:10:37 +02:00
Desktop: PDF search text: Remove NULL characters early to avoid possible sync issues (#9862)
This commit is contained in:
8
packages/lib/utils/replaceUnsupportedCharacters.test.ts
Normal file
8
packages/lib/utils/replaceUnsupportedCharacters.test.ts
Normal file
@ -0,0 +1,8 @@
|
||||
import replaceUnsupportedCharacters from './replaceUnsupportedCharacters';
|
||||
|
||||
describe('replaceUnsupportedCharacters', () => {
|
||||
test('should replace NULL characters', () => {
|
||||
expect(replaceUnsupportedCharacters('Test\x00...')).toBe('Test�...');
|
||||
expect(replaceUnsupportedCharacters('\x00Test\x00...')).toBe('�Test�...');
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user