1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
6 The form (?! Disjunction ) specifies a zero-width negative lookahead.
7 In order for it to succeed, the pattern inside Disjunction must fail to match at the current position.
8 The current position is not advanced before matching the sequel
10 description: Execute /(\.(?!com|org)|\/)/.test("ah.com") and check results
13 var __executed = /(\.(?!com|org)|\/)/.test("ah.com");
15 assert(!__executed, 'The value of !__executed is expected to be true');