Skip to content

Commit e140888

Browse files
committed
fixed Tokyo district case issue (#126)
1 parent a9eb059 commit e140888

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/javascripts/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ var App = (function ($, publ) {
619619
if (data.result.address) {
620620
addressInput.val(data.result.address);
621621
if (districtInput && data.result.shikuchoson) {
622-
var regexp = /^\S+(\S+)$/g;
622+
var regexp = /^(?:\S+)?(\S+)$/g;
623623
var match = regexp.exec(data.result.shikuchoson);
624624
if (match && match.length === 2) {
625625
districtInput.val(match[1]);

0 commit comments

Comments
 (0)