Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/keenwrite.git

Match any registry string

AuthorDaveJarvis <email>
Date2023-08-21 18:15:46 GMT-0700
Commit615af212d2670f394c064687042415854d47a99f
Parent139ceea
Delta9 lines added, 2 lines removed, 7-line increase
src/main/java/com/keenwrite/io/SysFile.java
for( final var dir : dirs ) {
- final var p = Path.of( dir ).resolve( exe );
+ Path p;
+
+ try {
+ p = Path.of( dir ).resolve( exe );
+ } catch( final Exception ex ) {
+ clue( ex );
+ continue;
+ }
for( final var extension : EXTENSIONS ) {
src/main/java/com/keenwrite/io/WindowsRegistry.java
private static final Pattern VAR_PATTERN = compile( VAR_REGEX );
- private static final String REG_REGEX = "\\s*path\\s+REG_EXPAND_SZ\\s+(.*)";
+ private static final String REG_REGEX = "\\s*path\\s+REG_.*SZ\\s+(.*)";
private static final Pattern REG_PATTERN = compile( REG_REGEX );