mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-04 14:28:10 -05:00
Improve log hints ids.
This commit is contained in:
parent
c5f53ef431
commit
d93c96d43c
1 changed files with 2 additions and 1 deletions
|
@ -12,7 +12,8 @@ define [
|
||||||
ruleDetails = _getRule entry.message
|
ruleDetails = _getRule entry.message
|
||||||
|
|
||||||
if (ruleDetails?)
|
if (ruleDetails?)
|
||||||
entry.ruleId = 'hint_' + ruleDetails.regexToMatch.toString().replace(/[^a-zA-Z0-9]/g, '_').toLowerCase() if ruleDetails.regexToMatch?
|
entry.ruleId = 'hint_' + ruleDetails.regexToMatch.toString().replace(/\s/g, '_').slice(1, -1) if ruleDetails.regexToMatch?
|
||||||
|
|
||||||
entry.humanReadableHint = ruleDetails.humanReadableHint if ruleDetails.humanReadableHint?
|
entry.humanReadableHint = ruleDetails.humanReadableHint if ruleDetails.humanReadableHint?
|
||||||
entry.extraInfoURL = ruleDetails.extraInfoURL if ruleDetails.extraInfoURL?
|
entry.extraInfoURL = ruleDetails.extraInfoURL if ruleDetails.extraInfoURL?
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue