avances en plantillas
This commit is contained in:
parent
0f84beacf1
commit
da0530d79b
2062 changed files with 598814 additions and 22 deletions
30
storage/public/dist/libs/imask/esm/masked/regexp.js
vendored
Normal file
30
storage/public/dist/libs/imask/esm/masked/regexp.js
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
import Masked from './base.js';
|
||||
import IMask from '../core/holder.js';
|
||||
import '../core/change-details.js';
|
||||
import '../core/continuous-tail-details.js';
|
||||
import '../core/utils.js';
|
||||
|
||||
/** Masking by RegExp */
|
||||
class MaskedRegExp extends Masked {
|
||||
/** */
|
||||
|
||||
/** Enable characters overwriting */
|
||||
|
||||
/** */
|
||||
|
||||
/** */
|
||||
|
||||
/** */
|
||||
|
||||
updateOptions(opts) {
|
||||
super.updateOptions(opts);
|
||||
}
|
||||
_update(opts) {
|
||||
const mask = opts.mask;
|
||||
if (mask) opts.validate = value => value.search(mask) >= 0;
|
||||
super._update(opts);
|
||||
}
|
||||
}
|
||||
IMask.MaskedRegExp = MaskedRegExp;
|
||||
|
||||
export { MaskedRegExp as default };
|
||||
Loading…
Add table
Add a link
Reference in a new issue