ucap-doc/documents/업무/2월/2째주/phone-fomatter.txt

83 lines
2.9 KiB
Plaintext
Raw Permalink Normal View History

2020-02-16 13:16:39 +00:00
libphonenumber-js ^0.4.19
default_country: "KR"
metadata:
KR: Array(6)
0: "82"
1: "00(?:3\d{8,9}|7\d{9,11})|[1-7]\d{4,9}|8\d{8}"
2:
0: (3) ["(\d{2})(\d{3,4})", "$1-$2", Array(1)]
1: (4) ["(\d{4})(\d{4})", "$1-$2", Array(2), "$1"]
2: (3) ["(\d{5})", "$1", Array(3)]
3: (3) ["(\d)(\d{3,4})(\d{4})", "$1-$2-$3", Array(1)]
4: (3) ["(\d{2})(\d{3})(\d{4})", "$1-$2-$3", Array(1)]
5: (3) ["(\d{2})(\d{3,4})(\d{4})", "$1-$2-$3", Array(1)]
6: (3) ["(\d{2})(\d{4})(\d{4})", "$1-$2-$3", Array(1)]
3: "0"
4: "0$1"
5: "0(8[1-46-8]|85\d{2})?"
length: 6
parsed_input: "01040"
current_output: ""
national_prefix: "0"
national_number: "1040"
country: "KR"
country_metadata: (6) ["82", "00(?:3\d{8,9}|7\d{9,11})|[1-7]\d{4,9}|8\d{8}", Array(7), "0", "0$1", "0(8[1-46-8]|85\d{2})?"]
country_phone_code: "82"
available_formats: (7) [Array(3), Array(4), Array(3), Array(3), Array(3), Array(3), Array(3)]
matching_formats: [Array(3)]
chosen_format: (3) ["(\d{2})(\d{3,4})(\d{4})", "$1-$2-$3", Array(1)]
template: "xxx-xxxx-xxxx"
partially_populated_template: "010-40xx-xxxx"
last_match_position: 5
latest
options: {}
metadata: Metadata {metadata: {…}, v1: false, v2: false, v3: false, v4: true, …}
defaultCountry: "KR"
formattedOutput: "01031"
international: undefined
countryCallingCode: undefined
digits: "01031"
nationalNumberDigits: "1031"
nationalPrefix: "0"
carrierCode: ""
country: "KR"
matchingFormats: (2) [Format, Format]
chosenFormat: Format {_format: Array(3), metadata: NumberingPlan}
template: "xxxxx-xxxx"
populatedNationalNumberTemplate: "01031-xxxx"
populatedNationalNumberTemplatePosition: 4
altKey: false
bubbles: true
cancelBubble: false
cancelable: true
charCode: 0
code: "Digit1"
composed: true
ctrlKey: false
currentTarget: input#mat-input-4.mat-input-element.mat-form-field-autofill-control.cdk-text-field-autofill-monitored
defaultPrevented: false
detail: 0
eventPhase: 2
isComposing: false
isTrusted: true
key: "1"
keyCode: 49
location: 0
metaKey: false
path: (11) [input#mat-input-4.mat-input-element.mat-form-field-autofill-control.cdk-text-field-autofill-monitor…, div.expired-text, ucap-call-dial-pad.ng-star-inserted, mat-dialog-container#mat-dialog-0.mat-dialog-container.ng-tns-c48-33.ng-trigger.ng-trigger-dialogCo…, div#cdk-overlay-0.cdk-overlay-pane, div.cdk-global-overlay-wrapper, div.cdk-overlay-container, body.theme-default.ng-tns-0-0, html, document, global]
repeat: false
returnValue: true
shiftKey: false
sourceCapabilities: InputDeviceCapabilities {firesTouchEvents: false}
srcElement: input#mat-input-4.mat-input-element.mat-form-field-autofill-control.cdk-text-field-autofill-monitored
target: input#mat-input-4.mat-input-element.mat-form-field-autofill-control.cdk-text-field-autofill-monitored
timeStamp: 141697.48999999138
type: "keydown"
view: global {parent: global, postMessage: ƒ, blur: ƒ, focus: ƒ, close: ƒ, …}
which: 49