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:
@@ -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){
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user