mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
fix indentation regexp for doc:examples
This commit is contained in:
parent
754d2541c4
commit
e5419db6c7
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue