no message
This commit is contained in:
parent
87cdee4fe8
commit
9594cc674f
2
resources/assets/js/functions/common.js
vendored
2
resources/assets/js/functions/common.js
vendored
@ -141,7 +141,7 @@
|
|||||||
* @param end
|
* @param end
|
||||||
* @returns {*}
|
* @returns {*}
|
||||||
*/
|
*/
|
||||||
getMiddle(string, start, end) {
|
getMiddle(string, start = null, end = null) {
|
||||||
string = string.toString();
|
string = string.toString();
|
||||||
if (this.isHave(start) && this.strExists(string, start)) {
|
if (this.isHave(start) && this.strExists(string, start)) {
|
||||||
string = string.substring(string.indexOf(start) + start.length);
|
string = string.substring(string.indexOf(start) + start.length);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user