Monotone-Parent: 36b65152583027c2506fe59e3b0c3c5c9afe9dd2

Monotone-Revision: 361e773d3d8846808f8d0ac504cac38d25cbff5c

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-02-10T05:54:20
This commit is contained in:
Wolfgang Sourdeau
2012-02-10 05:54:20 +00:00
parent d5a90f7950
commit a8ae0e30f4
3 changed files with 14 additions and 4 deletions

View File

@@ -70,8 +70,10 @@ String.prototype.asDate = function () {
};
String.prototype.asCSSIdentifier = function() {
var characters = [ '_' , '\\.', '#' , '@' , '\\*', ':' , ',' , ' ' , "'", '&' ];
var escapeds = [ '_U_', '_D_', '_H_', '_A_', '_S_', '_C_', '_CO_', '_SP_', '_SQ_', '_AM_' ];
var characters = [ '_' , '\\.', '#' , '@' , '\\*', ':' , ',' , ' '
, "'", '&', '+' ];
var escapeds = [ '_U_', '_D_', '_H_', '_A_', '_S_', '_C_', '_CO_',
'_SP_', '_SQ_', '_AM_', '_P_' ];
var newString = this;
for (var i = 0; i < characters.length; i++) {