mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: [constructor] bbcode would cause markdown crash
This commit is contained in:
parent
3937ff0425
commit
a9e2fc59c4
2 changed files with 7 additions and 1 deletions
|
@ -50,7 +50,9 @@ class Ruler {
|
|||
|
||||
getRuleForTag(tag) {
|
||||
this.ensureCache();
|
||||
return this.cache[tag];
|
||||
if (this.cache.hasOwnProperty(tag)) {
|
||||
return this.cache[tag];
|
||||
}
|
||||
}
|
||||
|
||||
ensureCache() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue