diff --git a/packages/xen-api/src/index.js b/packages/xen-api/src/index.js index d31b733b6..db397a96e 100644 --- a/packages/xen-api/src/index.js +++ b/packages/xen-api/src/index.js @@ -165,7 +165,7 @@ let getNotConnectedPromise = function () { // ------------------------------------------------------------------- -const OPAQUE_REF_PREFIX = /^OpaqueRef:/ +const OPAQUE_REF_PREFIX = 'OpaqueRef:' const isOpaqueRef = value => isString(value) && startsWith(value, OPAQUE_REF_PREFIX) // -------------------------------------------------------------------