驗證台灣電話號碼格式:行動 (09xx) / 市話 (0Xxxx) / 0800 / +886。 含或不含分隔符 (- 空白) 都可。回傳 type 與 area_code。
파라미터
| 이름 | 타입 | 설명 |
|---|---|---|
| phone * | string | — |
원본 JSON schema
{
"properties": {
"phone": {
"title": "Phone",
"type": "string"
}
},
"required": [
"phone"
],
"title": "validate_phoneArguments",
"type": "object"
}호출 방법
스타터 — 파라미터는 위 표 참조
tw_validate_phone({ phone: "…" })