Skip to content

Commit 5b83023

Browse files
committed
Allow underscores in Unsplash API key pattern
Fix #641
1 parent 5316631 commit 5b83023

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/lib/services/integrations/media-libraries/stock/unsplash.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export default {
155155
authType: 'api_key',
156156
developerURL: 'https://unsplash.com/developers',
157157
apiKeyURL: 'https://unsplash.com/oauth/applications',
158-
apiKeyPattern: /^[a-zA-Z\d-]{40,}$/,
158+
apiKeyPattern: /^[a-zA-Z\d_-]{40,}$/,
159159
list,
160160
search,
161161
};

src/lib/services/integrations/media-libraries/stock/unsplash.test.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)