Mercurial > hg > config
comparison chrome/pageloader.js @ 205:eaef28f55f92
Bug 692997 Ensure trailing spaces in pageloader manifest are properly trimmed r=jmaher
| author | Clint Talbert <ctalbert@mozilla.com> |
|---|---|
| date | Mon, 10 Oct 2011 14:41:18 -0700 |
| parents | 4dec1e56c677 |
| children | beca399c3a16 |
comparison
equal
deleted
inserted
replaced
| 204:4dec1e56c677 | 205:eaef28f55f92 |
|---|---|
| 617 | 617 |
| 618 // strip comments | 618 // strip comments |
| 619 s = s.replace(/#.*/, ''); | 619 s = s.replace(/#.*/, ''); |
| 620 | 620 |
| 621 // strip leading and trailing whitespace | 621 // strip leading and trailing whitespace |
| 622 s = s.replace(/^\s*/, '').replace(/s\*$/, ''); | 622 s = s.replace(/^\s*/, '').replace(/\s*$/, ''); |
| 623 | 623 |
| 624 if (!s) | 624 if (!s) |
| 625 continue; | 625 continue; |
| 626 | 626 |
| 627 var flags = 0; | 627 var flags = 0; |
