15 lines
351 B
Markdown
15 lines
351 B
Markdown
# Darklord.js — normalizeBlockId() (satır 1101)
|
||
|
||
[← Darklord.js](index.md) · [← Master](../../wiki.md)
|
||
|
||
```javascript
|
||
function normalizeBlockId(text)
|
||
{
|
||
var s = trim(String(text || ""));
|
||
s = s.replace(/\s+/g, "");
|
||
if (s.length === 0) return "";
|
||
if (s.indexOf(":") < 0) s = "minecraft:" + s;
|
||
return s;
|
||
}
|
||
```
|