Skip to content

Commit

Permalink
Update brToSpaceRegex to be more flexible (#626)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodexNotFound authored Jul 26, 2023
1 parent 592969b commit 32b4875
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {globalMessages, serverMessages} from "../messages";
import ConfigurationError from "@/errors/ConfigurationError";

const documentRange = document.createRange(),
brToSpaceRegex = /<br \/>/g;
brToSpaceRegex = /<br ?\/?>/g;

export const titleColoursRegex = /§[0-9a-f]/ig;
export const netherWorldNameRegex = /[_\s]?nether([\s_]|$)/i;
Expand Down

0 comments on commit 32b4875

Please sign in to comment.