Skip to content

Commit 61e31b3

Browse files
committed
test
1 parent 9d55d2e commit 61e31b3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

spec/ParseQuery.spec.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2113,6 +2113,19 @@ describe('Parse.Query testing', () => {
21132113
.then(done);
21142114
});
21152115

2116+
it('regex with unicode option', function (done) {
2117+
const thing = new TestObject();
2118+
thing.set('myString', 'hello 世界');
2119+
Parse.Object.saveAll([thing]).then(function () {
2120+
const query = new Parse.Query(TestObject);
2121+
query.matches('myString', '世界', 'u');
2122+
query.find().then(function (results) {
2123+
equal(results.length, 1);
2124+
done();
2125+
});
2126+
});
2127+
});
2128+
21162129
it_id('823852f6-1de5-45ba-a2b9-ed952fcc6012')(it)('Use a regex that requires all modifiers', function (done) {
21172130
const thing = new TestObject();
21182131
thing.set('myString', 'PArSe\nCom');

0 commit comments

Comments
 (0)