fixing docx parser missing text
This commit is contained in:
parent
9c1d2319ac
commit
615327f64d
@ -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);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user