fixing docx parser missing text

This commit is contained in:
FinnStutzenstein 2017-07-19 13:08:31 +02:00
parent 9c1d2319ac
commit 615327f64d
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ angular.module('OpenSlidesApp.core.docx', [])
// remove whitespaces and > brackets. Leave < brackets in there to check, whether
// the following string is a tag or text.
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);
});