0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-05 21:02:43 +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 // definition lists
if(line.includes('::')){ if(line.includes('::')){
const regex = /^([^\n]*?)::([^\n]*)(?:\n|$)/ym; // const regex = /^([^\n]*?)::([^\n]*)(?:\n|$)/ym;
const regex = /^([^\n:]*?)::(.*)(?:\n|$)/ym;
let match; let match;
while ((match = regex.exec(line)) != null){ while ((match = regex.exec(line)) != null){