Skip to content

Commit 498aa4a

Browse files
committed
Fixed issue with regex in config file
1 parent fcf2702 commit 498aa4a

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

multichat/src/main/resources/chatcontrol.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ ignorecommand:
187187
# Should MultiChat control which players can send links to chat?
188188
# If set to true, then only players with multichat.chat.link will be able to send links
189189
link_control: false
190-
link_regex: "((https|http):\/\/)?(www\.)?([-a-zA-Z0-9@:%._\+~#=]{2,256}\.)+[a-zA-Z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&\/\/=]*)"
190+
link_regex: '((https|http):\/\/)?(www\.)?([-a-zA-Z0-9@:%._\+~#=]{2,256}\.)+[a-zA-Z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&\/\/=]*)'
191191

192192
# Message to replace links in chat with
193193
link_removal_message: "[LINK REMOVED]"

multichat/src/main/resources/chatcontrol_fr.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ ignorecommand:
197197
# Si la valeur est true, alors seuls les joueurs avec la permission Multichat.chat.Link seront en mesure d’envoyer des liens.
198198
# Paramétrage disponible : true ou false
199199
link_control: false
200+
link_regex: '((https|http):\/\/)?(www\.)?([-a-zA-Z0-9@:%._\+~#=]{2,256}\.)+[a-zA-Z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&\/\/=]*)'
200201

201202
# Remplacer les liens / URL dans les message par :
202-
link_removal_message: "[Lien WEB supprimé]"
203+
link_removal_message: "[Lien WEB supprimé]"

0 commit comments

Comments
 (0)