3 - Quick clean up.
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
@@ -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,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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) => {
|
||||||
|
|||||||
@@ -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');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user