]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext/string/#/indent.js
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / node_modules / node-gyp / node_modules / path-array / node_modules / array-index / node_modules / es6-symbol / node_modules / es5-ext / string / # / indent.js
1 'use strict';
2
3 var repeat = require('./repeat')
4
5   , replace = String.prototype.replace
6   , re = /(\r\n|[\n\r\u2028\u2029])([\u0000-\u0009\u000b-\uffff]+)/g;
7
8 module.exports = function (indent/*, count*/) {
9         var count = arguments[1];
10         indent = repeat.call(String(indent), (count == null) ? 1 : count);
11         return indent + replace.call(this, re, '$1' + indent + '$2');
12 };