mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-20 02:31:23 +00:00
add node_modules
This commit is contained in:
26
node_modules/xml2js/lib/processors.js
generated
vendored
Normal file
26
node_modules/xml2js/lib/processors.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
// Generated by CoffeeScript 1.9.1
|
||||
(function() {
|
||||
var prefixMatch;
|
||||
|
||||
prefixMatch = new RegExp(/(?!xmlns)^.*:/);
|
||||
|
||||
exports.normalize = function(str) {
|
||||
return str.toLowerCase();
|
||||
};
|
||||
|
||||
exports.firstCharLowerCase = function(str) {
|
||||
return str.charAt(0).toLowerCase() + str.slice(1);
|
||||
};
|
||||
|
||||
exports.stripPrefix = function(str) {
|
||||
return str.replace(prefixMatch, '');
|
||||
};
|
||||
|
||||
exports.parseNumbers = function(str) {
|
||||
if (!isNaN(str)) {
|
||||
str = str % 1 === 0 ? parseInt(str, 10) : parseFloat(str);
|
||||
}
|
||||
return str;
|
||||
};
|
||||
|
||||
}).call(this);
|
Reference in New Issue
Block a user