UNPKG

@rgglez/gettext-extractor

Version:

Gettext extractor for JavaScript, TypeScript, JSX, HTML and others

10 lines (9 loc) 315 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RegexUtils = void 0; class RegexUtils { static getLineNumber(fileContent, searchString) { return fileContent.substring(0, fileContent.indexOf(searchString)).split('\n').length; } } exports.RegexUtils = RegexUtils;