User:Chlod/Scripts/Deputy.js: Difference between revisions

Content deleted Content added
v0.3.0; https://github.com/ChlodAlejandro/deputy/releases/tag/v0.3.0
[0dd03d9] fix improper heading N detection
Line 3,470:
 
var version = "0.3.0";
var gitAbbrevHash = "05c9346c43003a";
var gitBranch = "HEADmain";
var gitDate = "ThuMon, 245 NovDec 2022 0916:2858:0305 +0800";
var gitVersion = "0.3.0+g05c9346gc43003a";
 
/**
Line 3,601:
function sectionHeadingN (heading, headingName) {
try {
const headingNameEndPattern = /(?:\s|_)*(\d+)/g;
const headingIdEndPattern = /_(\d+)/g;
const headingId = sectionHeadingId(heading);