typo in normalizing spaces

svn: r10514
This commit is contained in:
Eli Barzilay 2008-06-30 03:51:19 +00:00
parent fb027536f4
commit f5969e0e65

View File

@ -255,8 +255,8 @@ function MinComparesRx(pats, str) {
}
function NormalizeSpaces(str) {
return str.replace(/\s\s*/g," ") // single spaces
replace(/^\s/,"").replace(/\s$/,""); // trim edge spaces
return str.replace(/\s\s*/g," ") // single spaces
.replace(/^ /,"").replace(/ $/,""); // trim edge spaces
}
function UrlToManual(url) {