25 lines
485 B
Markdown
25 lines
485 B
Markdown
# MercanRey6.js — splitContact() (satır 117)
|
||
|
||
[← MercanRey6.js](index.md) · [← Master](../../wiki.md)
|
||
|
||
```javascript
|
||
function splitContact(entry)
|
||
{
|
||
var text = String(entry == null ? "" : entry);
|
||
var index = text.lastIndexOf("#");
|
||
|
||
if (index < 0)
|
||
{
|
||
return {
|
||
name: text,
|
||
uuid: ""
|
||
};
|
||
}
|
||
|
||
return {
|
||
name: text.substring(0, index),
|
||
uuid: text.substring(index + 1)
|
||
};
|
||
}
|
||
```
|