-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Labels
Fixed in 2.3.xThe issue has been fixed in 2.3 release lineThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report
Description
Preconditions
- Magento 2.1.X (explict tested with 2.1.2, also shouldn't work with all other versions)
- PHP 7.0.X
- Production Mode
- Enabled JS Bundling (Configuration > Advanced > Developer > JavaScript Settings)
Steps to reproduce
- Create a custom JS File which should do some Regular Expressions (e.g. Input Fields in Checkout)
- Inside if Validation e.g. do a /^([a-zA-ZßäöüÄÖÜ\s.]{3,})+$/
- Run php bin/magento setup:static-content:deploy
Expected result
- Regex should pass the following string: "Übergrößenträger"
Actual result
- Can't validate this string, because REGEX Validation is modified to:
/^([a-zA-Z\u00c3\u009f\u00c3\u00a4\u00c3\u00b6\u00c3\u00bc\u00c3\u0084\u00c3\u0096\u00c3\u009c\s.]{3,})+$/ - This is after the json_encode of this string. Before Magento do this, here is the string that Magento creates: /^([a-zA-Z�äöü���\s.]{3,})+$/
Metadata
Metadata
Assignees
Labels
Fixed in 2.3.xThe issue has been fixed in 2.3 release lineThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report