Tweaks
This commit is contained in:
@@ -425,7 +425,7 @@ export const parse = (text: string): Piece[] => {
|
||||
pieces.push({ type: "potion", text: text.slice(i + 1, i + end) });
|
||||
i += end - 1;
|
||||
} else if (char === "+") {
|
||||
const match = text.slice(i).match(/\+\d* \S+/);
|
||||
const match = text.slice(i).match(/\+\d* \w+/);
|
||||
if (match) {
|
||||
const end = match[0].length;
|
||||
pieces.push({
|
||||
|
||||
Reference in New Issue
Block a user