Permalink
Browse files

JSLINT upgrade

  • Loading branch information...
1 parent 5ca4f25 commit 9d769ae17953bcabd4f0c0851476a379a316296f @ConradIrwin ConradIrwin committed Feb 10, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 public/javascripts/underscore_extensions.js
@@ -59,11 +59,11 @@
// Turns a CamelCaseExpression into an underscore_expression.
underscore: function (str) {
- return str.
- replace(/([A-Z]+)([A-Z][a-z])/g, '$1_$2').
- replace(/([a-z0-9])([A-Z])/g, '$1_$2').
- replace(/\-/g, '_').
- toLowerCase();
+ return str
+ .replace(/([A-Z]+)([A-Z][a-z])/g, '$1_$2')
+ .replace(/([a-z0-9])([A-Z])/g, '$1_$2')
+ .replace(/\-/g, '_')
+ .toLowerCase();
},
// Escapes a string for inclusion into a regular expression.

0 comments on commit 9d769ae

Please sign in to comment.