Merge pull request #3319 from FinnStutzenstein/docx-text-missing

fixing docx parser missing text
This commit is contained in:
Emanuel Schütze 2017-07-26 15:03:27 +02:00 committed by GitHub
commit 5644e99b43

View File

@ -259,7 +259,7 @@ angular.module('OpenSlidesApp.core.docx', [])
// remove whitespaces and > brackets. Leave < brackets in there to check, whether // remove whitespaces and > brackets. Leave < brackets in there to check, whether
// the following string is a tag or text. // the following string is a tag or text.
html = _.filter(html, function (part) { html = _.filter(html, function (part) {
var skippedCharsRegex = new RegExp('^([\s\n\r]|>)*$', 'gm'); var skippedCharsRegex = new RegExp('^([\s\n\r]|>)*$', 'g');
return !skippedCharsRegex.test(part); return !skippedCharsRegex.test(part);
}); });