Changeset 22115


Ignore:
Timestamp:
2012/12/01 20:54:49 (9 years ago)
Author:
Seasoft
Message:

#1903 (無駄な処理を改善する)

  • 文字クラスには区切りは不要。また、「|」は[:graph:]に含む。
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/SC_CheckError.php

    r21925 r22115  
    559559        } 
    560560        $this->createParam($value); 
    561         if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^[[:graph:]|[:space:]]+$/i", $this->arrParam[$value[1]])) { 
     561        if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^[[:graph:][:space:]]+$/i", $this->arrParam[$value[1]])) { 
    562562            $this->arrErr[$value[1]] = '※ ' . $value[0] . 'は英数記号で入力してください。<br />'; 
    563563        } 
Note: See TracChangeset for help on using the changeset viewer.