@voiceflow/common 7.25.0 → 7.25.1

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.
@@ -1,5 +1,6 @@
1
1
  export declare const SPACE_REGEXP: RegExp;
2
2
  export declare const SLOT_REGEXP: RegExp;
3
+ export declare const SLOT_ANNOTATION_SIMPLE_REGEX: RegExp;
3
4
  export declare const IS_VARIABLE_REGEXP: RegExp;
4
5
  export declare const READABLE_VARIABLE_REGEXP: RegExp;
5
6
  export declare const VALID_CHARACTER = "a-zA-Z";
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VALID_SAMPLE_UTTERANCE = exports.VALID_SAMPLE_CHARACTERS = exports.VALID_SAMPLE_CHARACTERS_WITHOUT_CURLY_BRACES_OR_SPACES = exports.VALID_SPOKEN_CHARACTER = exports.VALID_LATIN_CHARACTER = exports.VALID_CHARACTER = exports.READABLE_VARIABLE_REGEXP = exports.IS_VARIABLE_REGEXP = exports.SLOT_REGEXP = exports.SPACE_REGEXP = void 0;
3
+ exports.VALID_SAMPLE_UTTERANCE = exports.VALID_SAMPLE_CHARACTERS = exports.VALID_SAMPLE_CHARACTERS_WITHOUT_CURLY_BRACES_OR_SPACES = exports.VALID_SPOKEN_CHARACTER = exports.VALID_LATIN_CHARACTER = exports.VALID_CHARACTER = exports.READABLE_VARIABLE_REGEXP = exports.IS_VARIABLE_REGEXP = exports.SLOT_ANNOTATION_SIMPLE_REGEX = exports.SLOT_REGEXP = exports.SPACE_REGEXP = void 0;
4
4
  exports.SPACE_REGEXP = / /g;
5
5
  exports.SLOT_REGEXP = /{{\[([^ .[\]{}]*?)]\.([^ .[\]{}]*?)}}/g;
6
+ exports.SLOT_ANNOTATION_SIMPLE_REGEX = /{([^ .[\]{}]+?)}/g;
6
7
  exports.IS_VARIABLE_REGEXP = /^{.*}$/;
7
8
  exports.READABLE_VARIABLE_REGEXP = /{(\w{1,64})}/g;
8
9
  exports.VALID_CHARACTER = 'a-zA-Z';
@@ -1,5 +1,6 @@
1
1
  export declare const SPACE_REGEXP: RegExp;
2
2
  export declare const SLOT_REGEXP: RegExp;
3
+ export declare const SLOT_ANNOTATION_SIMPLE_REGEX: RegExp;
3
4
  export declare const IS_VARIABLE_REGEXP: RegExp;
4
5
  export declare const READABLE_VARIABLE_REGEXP: RegExp;
5
6
  export declare const VALID_CHARACTER = "a-zA-Z";
@@ -1,5 +1,6 @@
1
1
  export const SPACE_REGEXP = / /g;
2
2
  export const SLOT_REGEXP = /{{\[([^ .[\]{}]*?)]\.([^ .[\]{}]*?)}}/g;
3
+ export const SLOT_ANNOTATION_SIMPLE_REGEX = /{([^ .[\]{}]+?)}/g;
3
4
  export const IS_VARIABLE_REGEXP = /^{.*}$/;
4
5
  export const READABLE_VARIABLE_REGEXP = /{(\w{1,64})}/g;
5
6
  export const VALID_CHARACTER = 'a-zA-Z';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@voiceflow/common",
3
3
  "description": "Junk drawer of utility functions",
4
- "version": "7.25.0",
4
+ "version": "7.25.1",
5
5
  "author": "Voiceflow",
6
6
  "bugs": {
7
7
  "url": "https://github.com/voiceflow/libs/issues"
@@ -76,5 +76,5 @@
76
76
  "test:single": "NODE_ENV=test ts-mocha --paths --config config/tests/mocharc.yml",
77
77
  "test:unit": "NODE_ENV=test nyc --report-dir=nyc_coverage_unit ts-mocha --paths --config config/tests/mocharc.yml 'tests/**/*.unit.ts'"
78
78
  },
79
- "gitHead": "667df22d884b655813e09d2fc6ca0adfb3463a8a"
79
+ "gitHead": "cb46007be51b23d0852dbe4899c55bdc2afcf9bd"
80
80
  }