Skip to content

Commit 1501816

Browse files
committed
Add RegExp 'global' option to Russian grammar rules
1 parent 765aaf7 commit 1501816

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

languages/grammar/ru.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"meta": {
3-
"regExpFlags": ""
3+
"regExpFlags": "g"
44
},
55
"v5": {
66
"accusative": [

test/grammar_test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ tape.test('verify grammar files structure', function(assert) {
226226
Object.keys(languages.grammars).forEach((l) => {
227227
var grammar = languages.grammars[l];
228228

229+
assert.ok(grammar.meta.regExpFlags.includes('g'), l + ' grammar has "g" regexp option');
230+
229231
assert.ok(grammar.v5, l + ' grammar has v5 version');
230232

231233
Object.keys(grammar.v5).forEach((g) => {

0 commit comments

Comments
 (0)