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

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

View File

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

View File

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