mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-20 07:43:12 +09:00
Fix JSDoc issues
Fix missing documentation for parameters and return types, incorect config and errors in type definitions.
This commit is contained in:
1 parent
3dba92a03d
commit
703fda43ad
20 files changed
+193
-52
No files matched your search
@@ -8,6 +8,9 @@ const luaTools = require("lib/luaTools");
|
||||
|
||||
/**
|
||||
* Removes gps and train tags from messags
|
||||
*
|
||||
* @param {string} content - string to strip tags from.
|
||||
* @returns {string} stripped string.
|
||||
*/
|
||||
function removeTags(content) {
|
||||
return content.replace(/(\[gps=-?\d+,-?\d+\]|\[train=\d+\])/g, "");
|
||||
|
||||
Reference in new issue
Block a user