3 - Quick clean up.
This commit is contained in:
@@ -2,6 +2,6 @@ import { DE } from './de';
|
||||
import { EN } from './en';
|
||||
|
||||
export const I18N = {
|
||||
EN,
|
||||
DE,
|
||||
EN,
|
||||
};
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user