utiller 1.0.97 → 1.0.98

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.
@@ -328,6 +328,13 @@ var Utiller = /*#__PURE__*/function () {
328
328
 
329
329
  return true;
330
330
  }
331
+ }, {
332
+ key: "getHeadMatch",
333
+ value: function getHeadMatch(string, rule) {
334
+ var flag = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "g";
335
+ var result = string.match(new RegExp(rule, flag));
336
+ return this.isUndefinedNullEmpty(result) ? undefined : result[0];
337
+ }
331
338
  }, {
332
339
  key: "or",
333
340
  value: function or() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "utiller",
3
- "version": "1.0.97",
3
+ "version": "1.0.98",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -11,7 +11,7 @@
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
13
  "configerer": "^1.0.11",
14
- "utiller": "^1.0.96",
14
+ "utiller": "^1.0.97",
15
15
  "linepayer": "^1.0.4",
16
16
  "databazer": "^1.0.9",
17
17
  "lodash": "^4.17.20",