xml2js
Version:
Simple XML to JavaScript object converter.
20 lines (14 loc) • 399 B
JavaScript
// Generated by CoffeeScript 1.6.3
(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, '');
};
}).call(this);