Regulations Governing Temporary Detention of Passengers Article 8

The Agency shall interview the detainee and shall investigate the statements immediately. Moreover, the investigation shall be processed in accordance with Article 9 to 13 of the Act. If temporary detention is found to be unnecessary, the detainee shall be released at once.
中文原文 內政部入出國及移民署實施暫時留置辦法第8條
入出國及移民署對被暫時留置人,應儘速詢問及進行調查後,依第九條至第十三條規定辦理。
無暫時留置之必要者,應即放行。

English translation for reference only; the Chinese text prevails. Not legal advice.