Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

Improve Citation support #396

Merged
merged 5 commits into from Mar 3, 2017
Merged

Improve Citation support #396

merged 5 commits into from Mar 3, 2017

Conversation

PaulDebus
Copy link
Contributor

Hey,

I wanted to contribute some small changes, that make my work easier.
I am using monod for a scientific work and I need to cite many online resources. So I introduced the online citation type.

I also added some documentation for the supported citation types, because it took my a while to figure out which I could use.

Thanks for looking into it, tell me if there is something I need to change or clarify.

Kind Regards
Paul

@willdurand willdurand self-requested a review February 27, 2017 10:47
app/bibtex.js Outdated
@@ -15,9 +15,13 @@ function optional(string, fallback) {
return undefined !== str ? `(${str})` : '';
}

function validUrl(string) {
return (/^https?:\/\//.test(string) || /^ftp:\/\//.test(string))
Copy link
Member

Choose a reason for hiding this comment

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

missing trailing semi-colon :)

@willdurand
Copy link
Member

Looks good to me, only a tiny mistake

@PaulDebus
Copy link
Contributor Author

Ups, yeah, right. I normally do Python ;) fixed it

app/bibtex.js Outdated
@@ -15,9 +15,13 @@ function optional(string, fallback) {
return undefined !== str ? `(${str})` : '';
}

function validUrl(string) {
Copy link
Member

Choose a reason for hiding this comment

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

What about naming this function isValidUrl?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hm... yeah good point. I will change this.

@jmaupetit
Copy link
Member

Looks good to me too. Thanks @PaulDebus !

@willdurand willdurand merged commit e252374 into TailorDev:master Mar 3, 2017
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.

None yet

3 participants