Last change
on this file since 263 was
256,
checked in by hendrikvanantwerpen, 13 years ago
|
Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).
|
File size:
399 bytes
|
Line | |
---|
1 | define(["../main", "doh", "../regexp"], function(dojo, doh){ |
---|
2 | |
---|
3 | doh.register("tests.regexp", |
---|
4 | function test_regexp_escape(t){ |
---|
5 | t.assertTrue(new RegExp(dojo.regexp.escapeString("\f\b\n\t\r+.$?*|{}()[]\\/^")).test("TEST\f\b\n\t\r+.$?*|{}()[]\\/^TEST")); |
---|
6 | t.assertTrue(new RegExp(dojo.regexp.escapeString("\f\b\n\t\r+.$?*|{}()[]\\/^", ".")).test("TEST\f\b\n\t\r+X$?*|{}()[]\\/^TEST")); |
---|
7 | } |
---|
8 | ); |
---|
9 | |
---|
10 | |
---|
11 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.