Skip to content

Commit

Permalink
Merge pull request #47 from estruyf/dev
Browse files Browse the repository at this point in the history
Updated regex to match the last closing div
  • Loading branch information
patrick-rodgers authored Mar 16, 2018
2 parents d200f54 + 6fafc86 commit d239843
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sp/src/clientsidepages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ export class ClientSideText extends CanvasControl {

super.fromHtml(html);

const match = /<div[^>]*data-sp-rte[^>]*>(.*?)<\/div>/i.exec(html);
const match = /<div[^>]*data-sp-rte[^>]*>(.*?)<\/div>$/i.exec(html);

this.text = match.length > 1 ? match[1] : "";
}
Expand Down

0 comments on commit d239843

Please sign in to comment.