ensure that 'text' is a string

pull/1/head
ansuz 8 years ago
parent 2f2ab4392c
commit c267dd6a88

@ -190,7 +190,7 @@ define([
var getHeadingText = function () { var getHeadingText = function () {
var lines = editor.getValue().split(/\n/); var lines = editor.getValue().split(/\n/);
var text; var text = '';
lines.some(function (line) { lines.some(function (line) {
// lisps? // lisps?
var lispy = /^\s*(;|#\|)(.*?)$/; var lispy = /^\s*(;|#\|)(.*?)$/;

Loading…
Cancel
Save