Skip to content

Commit 284e442

Browse files
committed
Add RegExp 'global' option to Russian grammar rules
1 parent 2c69d68 commit 284e442

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

languages/grammar/ru.json

+1-1
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

+2
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,8 @@ tape.test('verify grammar files structure', function(assert) {
222222
Object.keys(languages.grammars).forEach((l) => {
223223
var grammar = languages.grammars[l];
224224

225+
assert.ok(grammar.meta.regExpFlags.includes('g'), l + ' grammar has "g" regexp option');
226+
225227
assert.ok(grammar.v5, l + ' grammar has v5 version');
226228

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

0 commit comments

Comments
 (0)