mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
8 lines
235 B
JavaScript
8 lines
235 B
JavaScript
function regexIndexOf(string, regex, startpos) {
|
|
var indexOf = string.substring(startpos || 0).search(regex);
|
|
return (indexOf >= 0) ? (indexOf + (startpos || 0)) : indexOf;
|
|
}
|
|
|
|
module.exports = {
|
|
regexIndexOf: regexIndexOf
|
|
} |