Skip to content

Commit 7661597

Browse files
authored
Merge pull request #17 from woosignal/master
5.2.1
2 parents 55d2272 + 4b30605 commit 7661597

File tree

5 files changed

+14
-10
lines changed

5 files changed

+14
-10
lines changed

LabelStoreMax/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [5.2.1] - 2020-10-13
2+
3+
* Bug fixes
4+
15
## [5.2.0] - 2020-10-12
26

37
* Migrate to Nylo 2.1.0

LabelStoreMax/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# WooCommerce App: Label StoreMax
66

7-
### Label StoreMax - v5.2.0
7+
### Label StoreMax - v5.2.1
88

99

1010
[Official WooSignal WooCommerce App](https://woosignal.com)

LabelStoreMax/lib/resources/widgets/checkout_paypal.dart

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,32 +38,32 @@ class WebViewState extends NyState<PayPalCheckout> {
3838
String tmp = "";
3939
if (customerAddress.firstName != null) {
4040
tmp +=
41-
'<input type="hidden" name="first_name" value="${customerAddress.firstName}">\n';
41+
'<input type="hidden" name="first_name" value="${customerAddress.firstName.replaceAll(new RegExp(r'[^\d\w\s,\-+]+'),'')}">\n';
4242
}
4343
if (customerAddress.lastName != null) {
4444
tmp +=
45-
'<input type="hidden" name="last_name" value="${customerAddress.lastName}">\n';
45+
'<input type="hidden" name="last_name" value="${customerAddress.lastName.replaceAll(new RegExp(r'[^\d\w\s,\-+]+'),'')}">\n';
4646
}
4747
if (customerAddress.addressLine != null) {
4848
tmp +=
49-
'<input type="hidden" name="address1" value="${customerAddress.addressLine}">\n';
49+
'<input type="hidden" name="address1" value="${customerAddress.addressLine.replaceAll(new RegExp(r'[^\d\w\s,\-+]+'),'')}">\n';
5050
}
5151
if (customerAddress.city != null) {
5252
tmp +=
53-
'<input type="hidden" name="city" value="${customerAddress.city}">\n';
53+
'<input type="hidden" name="city" value="${customerAddress.city.replaceAll(new RegExp(r'[^\d\w\s,\-+]+'),'')}">\n';
5454
}
5555
if (customerAddress.customerCountry.hasState() &&
5656
customerAddress.customerCountry.state.name != null) {
5757
tmp +=
58-
'<input type="hidden" name="state" value="${customerAddress.customerCountry.state.name}">\n';
58+
'<input type="hidden" name="state" value="${customerAddress.customerCountry.state.name.replaceAll(new RegExp(r'[^\d\w\s,\-+]+'),'')}">\n';
5959
}
6060
if (customerAddress.postalCode != null) {
6161
tmp +=
62-
'<input type="hidden" name="zip" value="${customerAddress.postalCode}">\n';
62+
'<input type="hidden" name="zip" value="${customerAddress.postalCode.replaceAll(new RegExp(r'[^\d\w\s,\-+]+'),'')}">\n';
6363
}
6464
if (customerAddress.customerCountry.countryCode != null) {
6565
tmp +=
66-
'<input type="hidden" name="country" value="${customerAddress.customerCountry.countryCode}">\n';
66+
'<input type="hidden" name="country" value="${customerAddress.customerCountry.countryCode.replaceAll(new RegExp(r'[^\d\w\s,\-+]+'),'')}">\n';
6767
}
6868
formCheckoutShippingAddress = tmp;
6969
}

LabelStoreMax/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Official WooSignal App Template for WooCommerce
22

33
# Label StoreMax
4-
# Version: 5.2.0
4+
# Version: 5.2.1
55
# Author: Anthony Gordon
66
# Homepage: https://woosignal.com
77
# Documentation: https://woosignal.com/docs/app/ios/label-storemax

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# WooCommerce App: Label StoreMax
66

7-
### Label StoreMax - v5.2.0
7+
### Label StoreMax - v5.2.1
88

99

1010
[Official WooSignal WooCommerce App](https://woosignal.com)

0 commit comments

Comments
 (0)