Skip to content

Commit

Permalink
alignment and variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed May 22, 2012
1 parent 5b515ef commit f6a6aca
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions underscore.js
Original file line number Diff line number Diff line change
Expand Up @@ -948,16 +948,16 @@
// Certain characters need to be escaped so that they can be put into a
// string literal.
var escapes = {
'\\': '\\',
"'": "'",
r: '\r',
n: '\n',
t: '\t',
u2028: '\u2028',
u2029: '\u2029'
'\\': '\\',
"'": "'",
r: '\r',
n: '\n',
t: '\t',
u2028: '\u2028',
u2029: '\u2029'
};

for (var p in escapes) escapes[escapes[p]] = p;
for (var key in escapes) escapes[escapes[key]] = key;
var escaper = /\\|'|\r|\n|\t|\u2028|\u2029/g;
var unescaper = /\\(\\|'|r|n|t|u2028|u2029)/g;

Expand Down

0 comments on commit f6a6aca

Please sign in to comment.