Browse code

Merge pull request #7 from M4rotte/patch-2

Update yab.md

devnewton authored on 11/06/2017 20:48:33 • GitHub committed on 11/06/2017 20:48:33
Showing 1 changed files
... ...
@@ -62,9 +62,18 @@ here coincoin’s developpers will recognize a standard post. We have the follow
62 62
 
63 63
 Of course the server would immediatly send back a "Post" message again with this post it just received, as it’s new (the post id is higher than last id).
64 64
 
65
-There are other kind of messages but those are the core ones.
65
+## References
66
+
67
+References are specially interpreted words in the post content, the posters (ie: users) can use them to indicate which message they’re replying to.
68
+
69
+It’s strongly recommended to use them everytime you reply to someone or more generally make reference to a particular post.
70
+
71
+There are two reference types in Yab : post reference and user reference.
72
+
73
+ - Post reference: matching the regex '@[0-9]{1,16}'
74
+
75
+ - User reference : matching the regex '@[A-zÀ-ÿ][A-zÀ-ÿ0-9_-]{1,32}'
76
+
77
+To make a reference, just click on a username (for username ref.) or on a clock (for post ref.). It will be inserted in the post input field, at the cursor location.
66 78
 
67
-# Références
68 79
 
69
-    Horloge '(@[0-9]{1,16})'
70
-    User    '(@[A-zÀ-ÿ][A-zÀ-ÿ0-9_-]{1,32})'