Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/services/networkManagement2/lib/operations/usages.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ function _list(location, options, callback) {
throw new Error('location cannot be null or undefined and it must be of type string.');
}
if (location !== null && location !== undefined) {
if (location.match(/^[-\w\._]+$/) === null)
if (location.match(/^[-\w\._ ]+$/) === null)
{
throw new Error('"location" should satisfy the constraint - "Pattern": /^[-\w\._]+$/');
throw new Error('"location" should satisfy the constraint - "Pattern": /^[-\w\._ ]+$/');
}
}
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {
Expand Down