東京都島嶼部のMA域内の町村について, 2つめ以降の村にも「東京都」と付いていたのを削除.
authorsatomichan <...@...>
Tue, 24 Mar 2026 14:43:16 +0000 (23:43 +0900)
committersatomichan <...@...>
Tue, 24 Mar 2026 14:43:16 +0000 (23:43 +0900)
js_tel2ma.js
tel2ma.pl

index 43b213609c074d03d2a8291c942c92eab88f3091..7f24244160f8b227c21e15e230dfbe627158c7dd 100755 (executable)
@@ -5,7 +5,7 @@
 tel2ma.js 日本国内電話番号 -> 市外局番・MA・市町村 取得プログラム
 
 
-Copyright 2025 FUKUDA Satomi (https://satomichan.jp/about_tel2ma)
+Copyright 2025-2026 FUKUDA Satomi (https://satomichan.jp/about_tel2ma)
 
 Licensed under the Apache License, Version 2.0 (the “License”);
 you may not use this file except in compliance with the License.
@@ -326,9 +326,9 @@ function get_ma_info(tel) {
     if( tel.startsWith('0493')  &&  (tel.match(/^0493/)) ){return ['0493', '東松山', '埼玉県東松山市,比企郡滑川町,嵐山町,小川町,吉見町,ときがわ町,秩父郡東秩父村']}
     if( tel.startsWith('0494')  &&  (tel.match(/^0494/)) ){return ['0494', '秩父', '埼玉県秩父市,秩父郡横瀬町,皆野町,長瀞町,小鹿野町']}
     if( tel.startsWith('0495')  &&  (tel.match(/^0495/)) ){return ['0495', '本庄', '埼玉県本庄市,児玉郡美里町,神川町,上里町']}
-    if( tel.startsWith('04992')  &&  (tel.match(/^04992/)) ){return ['04992', '伊豆大島', '東京都大島町,東京都利島村,東京都新島村,東京都神津島村']}
-    if( tel.startsWith('04994')  &&  (tel.match(/^04994/)) ){return ['04994', '三宅', '東京都三宅村,東京都御蔵島村']}
-    if( tel.startsWith('04996')  &&  (tel.match(/^04996/)) ){return ['04996', '八丈島', '東京都八丈町,東京都青ヶ島村']}
+    if( tel.startsWith('04992')  &&  (tel.match(/^04992/)) ){return ['04992', '伊豆大島', '東京都大島町,利島村,新島村,神津島村']}
+    if( tel.startsWith('04994')  &&  (tel.match(/^04994/)) ){return ['04994', '三宅', '東京都三宅村,御蔵島村']}
+    if( tel.startsWith('04996')  &&  (tel.match(/^04996/)) ){return ['04996', '八丈島', '東京都八丈町,青ヶ島村']}
     if( tel.startsWith('04998')  &&  (tel.match(/^04998/)) ){return ['04998', '小笠原', '東京都小笠原村']}
     if( tel.startsWith('055')  &&  (tel.match(/^055177/) || tel.match(/^0552/)) ){return ['055', '甲府', '山梨県甲府市,南アルプス市,甲斐市,笛吹市,中央市,西八代郡市川三郷町,中巨摩郡昭和町']}
     if( tel.startsWith('0551')  &&  (tel.match(/^0551[0-6]/) || tel.match(/^05517[0-6]/) || tel.match(/^05517[8-9]/) || tel.match(/^0551[8-9]/)) ){return ['0551', '韮崎', '山梨県韮崎市,北杜市']}
index 7354d8173da0952e8ac602d0f1b31a967dd72674..d6f697ce2312e1d52fa4fc14f2781d8cbdbd8dd8 100755 (executable)
--- a/tel2ma.pl
+++ b/tel2ma.pl
@@ -12,7 +12,7 @@ ex) $ ./tel2ma.pl 033xxx-yyyy
 _END_OF_USAGE_
 }
 
-# Copyright 2025 FUKUDA Satomi (https://satomichan.jp/about_tel2ma)
+# Copyright 2025-2026 FUKUDA Satomi (https://satomichan.jp/about_tel2ma)
 #
 # Licensed under the Apache License, Version 2.0 (the “License”);
 # you may not use this file except in compliance with the License.
@@ -423,9 +423,9 @@ __DATA__
 
 
 
-東京都    伊豆大島   04992       4992                             東京都大島町,東京都利島村,東京都新島村,東京都神津島村
-東京都    三宅       04994       4994                             東京都三宅村,東京都御蔵島村
-東京都    八丈島     04996       4996                             東京都八丈町,東京都青ヶ島村
+東京都    伊豆大島   04992       4992                             東京都大島町,利島村,新島村,神津島村
+東京都    三宅       04994       4994                             東京都三宅村,御蔵島村
+東京都    八丈島     04996       4996                             東京都八丈町,青ヶ島村
 東京都    小笠原     04998       4998                             東京都小笠原村