forked from openlp/openlp
- Fixed the dot chechk method.
(No longer removes dot after numbers, eg. 1.)
This commit is contained in:
parent
7e5b49ffdf
commit
acde9cad5e
@ -24,7 +24,7 @@ import logging
|
||||
import os
|
||||
|
||||
from openlp.core.common import RegistryProperties, AppLocation, Settings, translate, delete_file, UiStrings
|
||||
from openlp.plugins.bibles.lib import parse_reference, get_reference_separator, LanguageSelection
|
||||
from openlp.plugins.bibles.lib import parse_reference, LanguageSelection
|
||||
from openlp.plugins.bibles.lib.db import BibleDB, BibleMeta
|
||||
from .csvbible import CSVBible
|
||||
from .http import HTTPBible
|
||||
|
@ -667,10 +667,10 @@ class BibleMediaItem(MediaManagerItem):
|
||||
# Set Bibles to use the text input from Quick search field.
|
||||
bible = self.quickVersionComboBox.currentText()
|
||||
second_bible = self.quickSecondComboBox.currentText()
|
||||
# Get input from field and replace '. ' with ''
|
||||
# This will check if field has any '.' and removes them. Eg. Gen. 1 = Gen 1 = Genesis 1
|
||||
# Get input from field and replace 'A-Z + . ' with ''
|
||||
# This will check if field has any '.' after A-Z and removes them. Eg. Gen. 1 = Gen 1 = Genesis 1
|
||||
text = self.quick_search_edit.text()
|
||||
text = text.replace('. ', ' ')
|
||||
text = re.sub('\D[.]\s', ' ', text)
|
||||
# This is triggered on reference search, use the search from manager.py
|
||||
if self.quick_search_edit.current_search_type() != BibleSearch.Text:
|
||||
self.search_results = self.plugin.manager.get_verses(bible, text)
|
||||
|
Loading…
Reference in New Issue
Block a user