Permalink
Browse files

Añadida la sugerencia de @genezeta

  • Loading branch information...
Serabe committed Sep 8, 2011
1 parent 59ec10c commit d86f0cc1f6050f984f6a762a3fc17c2dd8032188
Showing with 6 additions and 6 deletions.
  1. +6 −6 06/h.js
View
12 06/h.js
@@ -1,22 +1,22 @@
HelperJS = HJS = (function() {
- ltrim = function(string) {
+ var ltrim = function(string) {
return string.replace(/^\s*/,"")
};
- rtrim = function(string) {
+ var rtrim = function(string) {
return string.replace(/\s*$/,"")
};
- trim = function(string) {
+ var trim = function(string) {
return ltrim(rtrim(string));
};
- toUrl = function(string) {
+ var toUrl = function(string) {
return trim(string).replace(/\s*/g, "-");
};
- camelCase = function(string) {
+ var camelCase = function(string) {
i=j=0;
string = trim(string);
newStr = "";
@@ -39,7 +39,7 @@ HelperJS = HJS = (function() {
return newStr;
};
- passEncrypt = function(string) {
+ var passEncrypt = function(string) {
return string.replace(/l/gi, "1").replace(/e/gi, "3").replace(/s/gi, "5").
replace(/b/gi, "8").replace(/g/gi, "9").replace(/o/gi, "0").
replace(/a/gi, "4").replace(/r/gi, "2").replace(/t/gi, "7");

0 comments on commit d86f0cc

Please sign in to comment.