This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type Format = 'YYYYMMDD' | 'MMDDYYYY' | 'DDMMYYYY'; | |
| const isValidDate = (value: string, format: Format): boolean => { | |
| const DATEFORMAT = | |
| format == 'YYYYMMDD' | |
| ? /^([12]\d{3})-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/ | |
| : format == 'MMDDYYYY' | |
| ? /^(0?[1-9]|1[0-2])\/(0?[1-9]|[1-2][0-9]|3[01])\/\d{4}$/ | |
| : /^(0?[1-9]|[1-2][0-9]|3[01])\/(0?[1-9]|1[0-2])\/\d{4}$/; | |
| const isValid = value.match(DATEFORMAT); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "100%BANCO": "0156", | |
| "ABN-AMRO-BANK": "0196", | |
| "BANCAMIGA-BANCO-MICROFINANCIERO": "0172", | |
| "BANCO-ACTIVO-BANCO-COMERCIAL": "0171", | |
| "BANCO-AGRICOLA": "0166", | |
| "BANCO-BICENTENARIO": "0175", | |
| "BANCO-CARONI-BANCO-UNIVERSAL": "0128", | |
| "BANCO-DE-DESARROLLO-DEL-MICROEMPRESARIO": "0164", | |
| "BANCO-DE-VENEZUELA": "0102", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Adder { | |
| private OnMathOperationPerformed onMathOperationPerformed; | |
| private int a, b; | |
| public Adder(int a, int b) { | |
| this.a = a; | |
| this.b = b; | |
| } |