Skip to content

Commit

Permalink
change attribution marker
Browse files Browse the repository at this point in the history
  • Loading branch information
commenthol committed Sep 10, 2017
1 parent 87a576c commit a3ab0bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ https://en.wikipedia.org/wiki/Public_holidays_in_Belarus
https://en.wikipedia.org/wiki/Public_holidays_in_Belgium
https://en.wikipedia.org/wiki/Public_holidays_in_Belize
https://en.wikipedia.org/wiki/Public_holidays_in_Bolivia
https://en.wikipedia.org/wiki/Public_holidays_in_Bosnia_and_Herzegovina
https://en.wikipedia.org/wiki/Public_holidays_in_Brazil
https://en.wikipedia.org/wiki/Public_holidays_in_Bulgaria
https://en.wikipedia.org/wiki/Public_holidays_in_Canada
Expand Down
4 changes: 2 additions & 2 deletions scripts/attributions.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ Attributions.prototype = {

extract () {
var data = this.data.filter((d) => {
if (/#\s*@source.*wikipedia/.test(d)) {
if (/#\s*@attrib\s/.test(d)) {
return true
}
})
.map((d) => {
return d
.replace(/#\s*@source/, '')
.replace(/#\s*@attrib/, '')
.trim()
})
.sort()
Expand Down

0 comments on commit a3ab0bb

Please sign in to comment.