You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							35 lines
						
					
					
						
							726 B
						
					
					
				
			
		
		
	
	
							35 lines
						
					
					
						
							726 B
						
					
					
				// Generated by CoffeeScript 1.12.7
 | 
						|
(function() {
 | 
						|
  "use strict";
 | 
						|
  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;
 | 
						|
  };
 | 
						|
 | 
						|
  exports.parseBooleans = function(str) {
 | 
						|
    if (/^(?:true|false)$/i.test(str)) {
 | 
						|
      str = str.toLowerCase() === 'true';
 | 
						|
    }
 | 
						|
    return str;
 | 
						|
  };
 | 
						|
 | 
						|
}).call(this);
 |