Skip to content

Commit

Permalink
handle multiple titles and descriptions. #83
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed May 19, 2018
1 parent 8b12985 commit 585eb53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/doi.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const Validations = buildValidations({
],
url: [
validator('format', {
regex: /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/,
regex: /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)/,
allowBlank: true,
message: 'Please enter a valid URL that the DOI should resolve to.'
}),
Expand Down
2 changes: 1 addition & 1 deletion app/transforms/wrapped.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Ember from 'ember';
export default DS.Transform.extend({
deserialize(serialized) {
if (Ember.typeOf(serialized) === 'array') {
this.deserialize(serialized[0]);
return this.deserialize(serialized[0]);
} else if (Ember.typeOf(serialized) === 'object') {
return serialized.text;
} else {
Expand Down

0 comments on commit 585eb53

Please sign in to comment.