Skip to content

Commit

Permalink
Merge pull request #1579 from Sefaria/fix-add-to-sheets-bug
Browse files Browse the repository at this point in the history
fix(sheets): add function that adds to sheet
  • Loading branch information
akiva10b authored Aug 10, 2023
2 parents ae811f0 + e8577c5 commit d6f0e4f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions static/js/sefaria/sefaria.js
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,10 @@ Sefaria = extend(Sefaria, {
const pattern = /^\s*<img\b[^>]*>\s*$/i;
return pattern.test(text);
},
isImage: function(textChunk) {
const pattern = /<img\b[^>]*>/i;
return pattern.test(textChunk);
},
getRefFromCache: function(ref) {
if (!ref) return null;
const versionedKey = this._refmap[this._refKey(ref)] || this._refmap[this._refKey(ref, {context:1})];
Expand Down

0 comments on commit d6f0e4f

Please sign in to comment.