We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c17df6 commit 463f9c1Copy full SHA for 463f9c1
src/textlint-rule-prh.js
@@ -1,6 +1,17 @@
1
// LICENSE : MIT
2
"use strict";
3
import { RuleHelper } from "textlint-rule-helper";
4
+/**
5
+ * RegExp#flags polyfill
6
+ */
7
+if (RegExp.prototype.flags === undefined) {
8
+ Object.defineProperty(RegExp.prototype, "flags", {
9
+ configurable: true,
10
+ get: function() {
11
+ return this.toString().match(/[gimuy]*$/)[0];
12
+ }
13
+ });
14
+}
15
16
const prh = require("prh");
17
const path = require("path");
0 commit comments