Skip to content

Commit 08271f9

Browse files
authored
fix: 修复 ULID 输出换行符报错
1 parent 26feecf commit 08271f9

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tools/ulid-generator/app.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,7 @@ <h1>ULID 生成器</h1>
178178
const randomPart = randomString(16);
179179
output.push(timePart + randomPart);
180180
}
181-
document.getElementById('ulid-output').value = output.join('
182-
');
181+
document.getElementById('ulid-output').value = output.join('\n');
183182
}
184183

185184
function clearOutput() {
@@ -189,4 +188,4 @@ <h1>ULID 生成器</h1>
189188

190189
<script src="/assets/clicks.js" defer></script>
191190
</body>
192-
</html>
191+
</html>

0 commit comments

Comments
 (0)