1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Use ES5 .trim()

This commit is contained in:
Artur Adib 2012-01-23 15:29:15 -05:00
parent 5c8753dcba
commit b34c55cc3c

View file

@ -2596,9 +2596,7 @@ var Type1Parser = function type1Parser() {
str = str.substr(start, count);
// Trim
str = str.replace(/^\s+/, '');
str = str.replace(/\s+$/, '');
str = str.trim();
// Remove adjacent spaces
str = str.replace(/\s+/g, ' ');