Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Fix lookup for stocks on named exchanges #1666

Closed
wants to merge 1 commit into from
Closed

Conversation

kcm
Copy link

@kcm kcm commented Oct 9, 2015

Use ':' in Google URL for suffixed stock (e.g. VOW.DE) but '.' in Yahoo URL.

Also, remove 'http/https' prefix from ticker if present. Slack is an example where 'VOW.DE' is currently passed down as 'HTTP://VOW.DE' (wrongly, in my opinion).

Use ':' in Google URL for suffixed stock (e.g. VOW.DE) but '.' in Yahoo URL.

Also, remove 'http/https' prefix from ticker if present. Slack is an example where 'VOW.DE' is currently passed down as 'HTTP://VOW.DE' (wrongly, in my opinion).
@@ -17,9 +17,9 @@

module.exports = (robot) ->
robot.respond /stock (?:info|price|quote)?\s?(?:for|me)?\s?@?([A-Za-z0-9.-_]+)\s?(\d+\w+)?/i, (msg) ->
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could also be changed to not interpret ".-" as a range from '.' to '' as it is now, but I felt it out of scope for this fix.

@technicalpickles
Copy link
Contributor

This repository has been deprecated for awhile in favor of npm packages. We are in the process of finding scripts that have been extracted, and deprecating them over in #1641

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants