mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 10:15:37 +02:00
Use ES5 .trim()
This commit is contained in:
parent
5c8753dcba
commit
b34c55cc3c
1 changed files with 1 additions and 3 deletions
|
@ -2596,9 +2596,7 @@ var Type1Parser = function type1Parser() {
|
||||||
|
|
||||||
str = str.substr(start, count);
|
str = str.substr(start, count);
|
||||||
|
|
||||||
// Trim
|
str = str.trim();
|
||||||
str = str.replace(/^\s+/, '');
|
|
||||||
str = str.replace(/\s+$/, '');
|
|
||||||
// Remove adjacent spaces
|
// Remove adjacent spaces
|
||||||
str = str.replace(/\s+/g, ' ');
|
str = str.replace(/\s+/g, ' ');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue