Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 3efba6e

Browse files
author
Volodymyr Kublytskyi
committed
MAGETWO-80150: Fix in stripped min length validation when value has special characters #11084
- Merge Pull Request magento/magento2#11084 from rubenRP/magento2:I#9920 - Merged commits: 1. 6e5c8f0 2. 6be8769
2 parents 921d5f6 + 6be8769 commit 3efba6e

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Ui/view/base/web/js/lib/validation

1 file changed

+1
-1
lines changed

app/code/Magento/Ui/view/base/web/js/lib/validation/rules.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ define([
244244
],
245245
'stripped-min-length': [
246246
function (value, param) {
247-
return value.length >= param;
247+
return _.isUndefined(value) || value.length === 0 || utils.stripHtml(value).length >= param;
248248
},
249249
$.mage.__('Please enter at least {0} characters')
250250
],

0 commit comments

Comments
 (0)