Commit 42b6c490 by benjaoming

Fix confusing comment

parent 7d45a29e
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
// if downcode doesn't hit, the char will be stripped here // if downcode doesn't hit, the char will be stripped here
s = s.replace(/[^-\w\s]/g, ''); // remove unneeded chars s = s.replace(/[^-\w\s]/g, ''); // remove unneeded chars
s = s.replace(/^\s+|\s+$/g, ''); // trim leading/trailing spaces s = s.replace(/^\s+|\s+$/g, ''); // trim leading/trailing spaces
s = s.replace(/[-\s]+/g, '_'); // convert spaces to hyphens s = s.replace(/[-\s]+/g, '_'); // convert spaces and hyphens to underscores
s = s.toLowerCase(); // convert to lowercase s = s.toLowerCase(); // convert to lowercase
return s.substring(0, num_chars);// trim to first num_chars chars return s.substring(0, num_chars);// trim to first num_chars chars
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment