Fix incorrect display of postcode on document edit screen

This commit is contained in:
Kijin Sung 2017-09-11 14:48:07 +09:00
parent 1d8d685fc1
commit e9daae400e

2
modules/krzip/krzip.model.php Executable file → Normal file
View file

@ -54,7 +54,7 @@ class krzipModel extends krzip
$output = array('', trim(preg_replace('/\s+/', ' ', $values)), '', '', '');
/* 우편번호 */
if(preg_match('/\(?([0-9]{3}-[0-9]{3})\)?/', $output[1], $matches))
if(preg_match('/\(?([0-9]{3}-[0-9]{3}|^[0-9]{5})\)?/', $output[1], $matches))
{
$output[1] = trim(preg_replace('/\s+/', ' ', str_replace($matches[0], '', $output[1])));
$output[0] = $matches[1];