details: https://code.openbravo.com/erp/devel/pi/rev/59f722a904c3
changeset: 21434:59f722a904c3
user: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
date: Thu Nov 07 15:59:38 2013 +0530
summary: Fixes Issue 0025087: Masked String is not working with ranges
When the regex mask contains ranges, manual generation of regex expression is
avoided.
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-text.js
| 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (14 lines):
diff -r dc863e6e11e3 -r 59f722a904c3
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-text.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-text.js
Tue Nov 12 02:41:00 2013 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-text.js
Thu Nov 07 15:59:38 2013 +0530
@@ -57,6 +57,10 @@
if (!mask) {
return null;
}
+ //when ranges are already present, return the same
+ if (mask.indexOf('[') !== -1) {
+ return mask;
+ }
split = mask.split('');
for (i = 0; i < split.length; i++) {
if (escaped) {
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits