smartloc 1.1.6 → 1.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.
Files changed (2) hide show
  1. package/cli/collect.js +1 -1
  2. package/package.json +1 -1
package/cli/collect.js CHANGED
@@ -101,7 +101,7 @@ function collect(source, forceLocale) {
101
101
  exports.collect = collect;
102
102
  function collectFromSource(content, ids, all, f) {
103
103
  // === parse loc() calls
104
- const re = /\bloc\s*(\(\s*('|")([a-zA-Z0-9\-_\s\.]+)('|")\s*(?:,\s*)?\))?\s*`([^`]+)`/g;
104
+ const re = /\bloc\s*(\(\s*('|")([a-zA-Z0-9\-_\s\.]+)('|")\s*(?:,\s*)?\))?\s*`([^`]*)`/g;
105
105
  let m;
106
106
  while (m = re.exec(content)) {
107
107
  let id = m[3];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smartloc",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "A i18n toolset for nodejs apis leveraging tagged strings",
5
5
  "main": "index.js",
6
6
  "scripts": {