Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
eh2077 committed Jul 25, 2023
1 parent 9ac15b6 commit 42c1842
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ExpensiMark.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@ export default class ExpensiMark {
});
} catch (e) {
Log.warn('Exception occurs in method ExpensiMark.replace', {error: e});

// We want to return text without applying rules if exception occurs during replacing
return shouldEscapeText ? _.escape(text) : text;
}
Expand Down

0 comments on commit 42c1842

Please sign in to comment.