3 - Quick clean up.

This commit is contained in:
Caleb Campbell
2025-12-27 13:47:27 +11:00
parent 59d66a247e
commit f56823f26c
4 changed files with 5 additions and 8 deletions

View File

@@ -6,8 +6,7 @@
"scripts": { "scripts": {
"dev": "node esbuild.config.mjs", "dev": "node esbuild.config.mjs",
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production", "build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
"version": "node version-bump.mjs && git add manifest.json versions.json", "version": "node version-bump.mjs && git add manifest.json versions.json"
"format": "prettier --write ."
}, },
"keywords": [], "keywords": [],
"author": "Caleb Campbell", "author": "Caleb Campbell",

View File

@@ -2,6 +2,6 @@ import { DE } from './de';
import { EN } from './en'; import { EN } from './en';
export const I18N = { export const I18N = {
EN,
DE, DE,
EN,
}; };

View File

@@ -136,8 +136,8 @@ export default class LocalBibleRefSettingTab extends PluginSettingTab {
.addDropdown((dropdown) => .addDropdown((dropdown) =>
dropdown dropdown
.addOptions({ .addOptions({
localBibleRef: 'Local Bible Ref', [BibleFormat.LocalBibleRef]: 'Local Bible Ref',
bibleLinker: 'Bible Linker', [BibleFormat.BibleLinker]: 'Bible Linker',
}) })
.setValue(this.plugin.settings.bibleFormat) .setValue(this.plugin.settings.bibleFormat)
.onChange(async (value) => { .onChange(async (value) => {

View File

@@ -61,9 +61,7 @@ export default class PassageReference
.map((b) => `${b.name}|${b.aliases.join('|')}`) .map((b) => `${b.name}|${b.aliases.join('|')}`)
.join('|'); .join('|');
regExpString += regExpString +=
') ?(\\d{1,3}(?::\\d{1,3})?' + ') ?(\\d{1,3}(?::\\d{1,3})?(?: ?\\- ?\\d{1,3}(?::\\d{1,3})?)?)((?: ?\\+[a-z]+(?::[a-z]+)?){0,2})$';
'(?: ?\\- ?\\d{1,3}(?::\\d{1,3})?)?)' +
'((?: ?\\+[a-z]+(?::[a-z]+)?){0,2})$';
return new RegExp(regExpString, 'i'); return new RegExp(regExpString, 'i');
} }