0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 22:52:40 +00:00

Update editor pattern match for DLs

This commit is contained in:
David Bolack
2024-01-07 15:40:05 -06:00
parent dfd5b228c2
commit 993ae295af

View File

@@ -151,7 +151,8 @@ const Editor = createClass({
// definition lists
if(line.includes('::')){
const regex = /^([^\n]*?)::([^\n]*)(?:\n|$)/ym;
// const regex = /^([^\n]*?)::([^\n]*)(?:\n|$)/ym;
const regex = /^([^\n:]*?)::(.*)(?:\n|$)/ym;
let match;
while ((match = regex.exec(line)) != null){