dist/axis3d.js
//helpers to escape unfoldable things in strings
helpers to escape unfoldable things in strings
helpers to escape unfoldable things in strings
function escape(str, arr) {
		str = str.replace(/\/\/[^\n]*$/mg, function (match) {
			return ' ___comment' + arr.push(match);
		});
		str = str.replace(/\/\*([^\*]|[\r\n]|(\*+([^\*\/]|[\r\n])))*\*+\//g, function (match) {
			return ' ___comment' + arr.push(match);
		});
		str = str.replace(/\'[^']*\'/g, function (match) {
			return ' ___string' + arr.push(match);
		});
		str = str.replace(/\"[^"]*\"/g, function (match) {
			return ' ___string' + arr.push(match);
		});
		str = str.replace(/\`[^`]*\`/g, function (match) {
			return ' ___string' + arr.push(match);
		});
		return str;
	}
function escape ( str , arr ) { str = str . replace ( / \/\/[^\n]*$ / mg , function ( match ) { return ' ___comment' + arr . push ( match ) ; } ) ; str = str . replace ( / \/\*([^\*]|[\r\n]|(\*+([^\*\/]|[\r\n])))*\*+\/ / g , function ( match ) { return ' ___comment' + arr . push ( match ) ; } ) ; str = str . replace ( / \'[^']*\' / g , function ( match ) { return ' ___string' + arr . push ( match ) ; } ) ; str = str . replace ( / \"[^"]*\" / g , function ( match ) { return ' ___string' + arr . push ( match ) ; } ) ; str = str . replace ( / \`[^`]*\` / g , function ( match ) { return ' ___string' + arr . push ( match ) ; } ) ; return str ; }
helpers to escape unfoldable things in strings
helpers to escape unfoldable things in strings
//hide comments //Escape strings