Skip to content

Commit

Permalink
Merge pull request #600 from OneCommunityGlobal/xiaow_hotfix_of_canno…
Browse files Browse the repository at this point in the history
…t_save_information_modal_change

XiaoW_hotfix_of_cannot_save_information_modal_change
  • Loading branch information
one-community authored Nov 8, 2023
2 parents 5aabaaf + dbfc6be commit b8f6ffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utilities/escapeRegex.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

const escapeRegex = function (text) {
return text.replace(/[[\]{}()*+?.\\^$|]/g, '\\$&');
return `^${text.replace(/[[\]{}()*+?.\\^$|]/g, '\\$&')}&`;
};

module.exports = escapeRegex;

0 comments on commit b8f6ffd

Please sign in to comment.