Fix Author parsing
Dependencies
- [2]
3FBABWSMAdd remotes view on the SCM panel - [3]
WPIUUBJIUse URIs instead of string paths in changelog - [4]
HVLXWD6AFix windows support, fix other bugs - [5]
ZGMIJNFVCreate pijul.ts for executing commands using the Pijul CLI - [6]
VT237HUJAdd tree view for channels - [7]
GGYKE3DVEnforce documentation on every Function, Method, and Class - [8]
L3VOQYAFAdd changelog view to the source control panel - [9]
WCQM6IOKAdd parsing of Author strings - [10]
HF3NERPZAdd cache for changes and add change dependencies to log - [11]
GPTHUH3NAdd commands for unrecording changes - [12]
6ONRFFRGFirst pass of file decorations
Change contents
- replacement in src/pijul.ts at line 174
) {}) { } - replacement in src/pijul.ts at line 635
) {}) { } - replacement in src/pijul.ts at line 650
) {}) { } - replacement in src/pijul.ts at line 654
* Creates a new PijulChangeAuthor by parsing an Author string in a change* @param authorString The full author string, in the format `[Author { name: "GarettWithOneR", full_name: Some("Garett Cooper"), email: Some("garett@garettcooper.com") }]`* Creates a new PijulChangeAuthor. This is mostly redundant now and can be removed now that* the author field in the pijul change log no longer has the Rust debug format.* @param authorString The name or key of the author - replacement in src/pijul.ts at line 659[5.2028]→[5.2028:2170](∅→∅),[5.2170]→[4.451:452](∅→∅),[4.452]→[5.2170:2432](∅→∅),[5.2170]→[5.2170:2432](∅→∅),[5.2432]→[4.453:563](∅→∅),[4.563]→[5.2503:2507](∅→∅),[5.2503]→[5.2503:2507](∅→∅)
const parsePattern = /Author\s\{\sname:\s"([^"]*)",\sfull_name:\s(?:Some\("([^"]*)"\)|(None)),\semail:\s(?:Some\("([^"]*)"\)|(None))\s\}/g;const match = parsePattern.exec(authorString);if (match != null) {// The 4th match needs to be skipped, as it is the (None) capture groupconst [, name, fullName,, email] = match;return new PijulChangeAuthor(name, fullName, email);} else {// Blank author field, just return blank stringsreturn new PijulChangeAuthor('<NO AUTHOR>', '', '');}// Now only disreturn new PijulChangeAuthor(authorString); - replacement in src/pijul.ts at line 675
) {}) { } - replacement in src/pijul.ts at line 690
) {}) { } - replacement in src/pijul.ts at line 703
) {}) { }