Allow for quotes around symbol in company listings.
This commit is contained in:
parent
289546c938
commit
9825301029
1 changed files with 1 additions and 1 deletions
|
|
@ -155,7 +155,7 @@ vector<Delta> get_component_delta (const string& market_symbol,
|
|||
/* Remember that these fields are injected into a database, so
|
||||
* be wary of unsanitary inputs. */
|
||||
static const regex part
|
||||
{" *\\( *([^\"' ]+) *\"([^\"]+)\" *([-+*])( [^)]*)?\\)"};
|
||||
{" *\\( *\"?([^\"' ]+)\"? *\"([^\"]+)\" *([-+*])( [^)]*)?\\)"};
|
||||
|
||||
if (! regex_search (cursor, end (response), m, part,
|
||||
regex_constants::match_continuous))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue