mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-09 15:24:43 +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) {
|
function indent(text) {
|
||||||
if (!text) return text;
|
if (!text) return text;
|
||||||
var lines = text.split(/[\n|\r]/);
|
var lines = text.split(/\r?\n/);
|
||||||
var lineNo = [];
|
var lineNo = [];
|
||||||
// remove any leading blank lines
|
// remove any leading blank lines
|
||||||
while (lines[0].match(/^\s*$/)) lines.shift();
|
while (lines[0].match(/^\s*$/)) lines.shift();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue