diff --git a/CHANGELOG.md b/CHANGELOG.md index e3996b3c8..4c1bd0625 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ ## [Unreleased] +### Fixed +- Remove look-behind to support Safari users as well + [#591](https://github.com/nextcloud/cookbook/pull/591) @christianlupus + ## 0.8.0 - 2021-02-14 ### Added diff --git a/src/components/RecipeView.vue b/src/components/RecipeView.vue index ecb03dec5..49d6ac6b4 100644 --- a/src/components/RecipeView.vue +++ b/src/components/RecipeView.vue @@ -248,8 +248,8 @@ export default { .replace(/'/g, "'"); }, convertRecipeReferences: function(text) { - let re = /(?<=^|\s|[,._+&?!-])#r\/(\d+)(?=$|\s|[.,_+&?!-])/g - let converted = text.replace(re, '#$1') + let re = /(^|\s|[,._+&?!-])#r\/(\d+)(?=$|\s|[.,_+&?!-])/g + let converted = text.replace(re, '$1#$2') return converted }, isNullOrEmpty: function(str) {