Skip to content

Commit

Permalink
fix(factories): small fix for undefined unsafe.replace #1335
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelParke committed Sep 28, 2016
1 parent 3683747 commit 12a7b27
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/factories.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,13 @@ angular.module('textAngular.factories', [])
// so we remove them here
// IN A FUTURE release this can be removed after all have updated through release 1.5.9
if (unsafe) {
unsafe = unsafe.replace(rsb1, '');
unsafe = unsafe.replace(rsb2, '');
unsafe = unsafe.replace(rsb1, '');
unsafe = unsafe.replace(rsb3, '');
try {
unsafe = unsafe.replace(rsb1, '');
unsafe = unsafe.replace(rsb2, '');
unsafe = unsafe.replace(rsb1, '');
unsafe = unsafe.replace(rsb3, '');
} catch (e) {
}
}

var safe;
Expand Down

0 comments on commit 12a7b27

Please sign in to comment.