半角スペースを含むタグは受け付けない
This commit is contained in:
@@ -178,6 +178,9 @@ class CheckinCsvImporter
|
||||
if (strpos($tag, "\n") !== false) {
|
||||
throw new CsvImportException("{$line} 行 : {$column}に改行を含めることはできません。");
|
||||
}
|
||||
if (strpos($tag, ' ') !== false) {
|
||||
throw new CsvImportException("{$line} 行 : {$column}にスペースを含めることはできません。");
|
||||
}
|
||||
|
||||
$tags[] = Tag::firstOrCreate(['name' => $tag]);
|
||||
if (count($tags) >= 32) {
|
||||
|
Reference in New Issue
Block a user