This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix duplicated Shipping method Block on the front-end (#8861)
* Fix duplicate "Shipping method" Block on the front-end - Issue: When local pickup is enabled and the shipping method's description is edited, the "Shipping method" is duplicated on the front-end - Solution: The previous regex didn't match some special characters such as ".", "!", etc. Because of that, it considers the Local Pickup toggle template to be missing and duplicate it. * Fix the regex looking for block templates The previous regex didn't account for some special characters that the user can use for a block's title or description, such as ".", "!", etc. As a result, the Block's template will be considered missing. --------- Co-authored-by: Niels Lange <info@nielslange.de>
- Loading branch information
1 parent
c10cd40
commit 12a36cf
Showing
2 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters