Files
doneit-web/src/plugin/reg.js
T

8 lines
235 B
JavaScript
Raw Normal View History

2021-07-16 12:59:43 +01:00
function regexIndexOf(string, regex, startpos) {
var indexOf = string.substring(startpos || 0).search(regex);
return (indexOf >= 0) ? (indexOf + (startpos || 0)) : indexOf;
}
module.exports = {
regexIndexOf: regexIndexOf
}