We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 345a8de commit 7564bfdCopy full SHA for 7564bfd
controlpanel/api/services/logs.js
@@ -130,8 +130,7 @@ module.exports = {
130
if (log.log.length > 1500) {
131
errors.push({ log, error: '.log attribute is too long' });
132
}
133
- // Updated regular expression to remove ambiguity and ensure efficient matching
134
- const matchLog = log.log.match(/^cad-filter:\s*(?<log>[^"\s]+).*$/);
+ const matchLog = log.log.match(/.*cad-filter:\s*(?<log>.*)(?:\s|\\t).*$/);
135
if (matchLog != null) log.log = matchLog.groups.log;
136
if (!isJSON(log.log)) {
137
errors.push({ log, error: '.log attribute is not a JSON' });
0 commit comments