taraskevizer 5.1.6 → 5.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bin.js CHANGED
@@ -104,16 +104,14 @@ while (currOption = process.argv.shift()) {
104
104
  let text = "";
105
105
  if (process.argv.length) {
106
106
  text = process.argv.join(" ");
107
+ } else if (process.stdin.isTTY) {
108
+ text = await readline.createInterface({
109
+ input: process.stdin,
110
+ output: process.stdout
111
+ }).question(prefix + "Enter the text:\n");
107
112
  } else {
108
- if (process.stdin.isTTY) {
109
- text = await readline.createInterface({
110
- input: process.stdin,
111
- output: process.stdout
112
- }).question(prefix + "Enter the text:\n");
113
- } else {
114
- for await (const chunk of process.stdin)
115
- text += chunk;
116
- }
113
+ for await (const chunk of process.stdin)
114
+ text += chunk;
117
115
  }
118
116
  const taraskevizer = new Taraskevizer({ general, html, nonHtml });
119
117
  process.stdout.write(
package/dist/index.cjs CHANGED
@@ -1969,7 +1969,7 @@ var getLastLetter = (word, i) => {
1969
1969
  };
1970
1970
  var NOFIX_CHAR = "  ";
1971
1971
  var NOFIX_REGEX = new RegExp(NOFIX_CHAR, "g");
1972
- var OPTIONAL_WORDS_REGEX = /\([^\)]*?\)/g;
1972
+ var OPTIONAL_WORDS_REGEX = /\([^)]*?\)/g;
1973
1973
  var G_REGEX = /[Ґґ]/g;
1974
1974
  var ALPHABET = {
1975
1975
  CYRILLIC: 0,
package/dist/index.js CHANGED
@@ -1937,7 +1937,7 @@ var getLastLetter = (word, i) => {
1937
1937
  };
1938
1938
  var NOFIX_CHAR = "  ";
1939
1939
  var NOFIX_REGEX = new RegExp(NOFIX_CHAR, "g");
1940
- var OPTIONAL_WORDS_REGEX = /\([^\)]*?\)/g;
1940
+ var OPTIONAL_WORDS_REGEX = /\([^)]*?\)/g;
1941
1941
  var G_REGEX = /[Ґґ]/g;
1942
1942
  var ALPHABET = {
1943
1943
  CYRILLIC: 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taraskevizer",
3
- "version": "5.1.6",
3
+ "version": "5.1.7",
4
4
  "author": "GooseOb",
5
5
  "repository": {
6
6
  "type": "git",