mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 11:37:38 +08:00
fix indentation regexp for doc:examples
This commit is contained in:
@@ -63,7 +63,7 @@
|
||||
|
||||
function indent(text) {
|
||||
if (!text) return text;
|
||||
var lines = text.split(/[\n|\r]/);
|
||||
var lines = text.split(/\r?\n/);
|
||||
var lineNo = [];
|
||||
// remove any leading blank lines
|
||||
while (lines[0].match(/^\s*$/)) lines.shift();
|
||||
|
||||
Reference in New Issue
Block a user